mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 03:25:36 +00:00
0098411b00
* glib/Thread.cs: Add a class for thread awareness * gdk/Threads.cs: ditto svn path=/trunk/gtk-sharp/; revision=9839
23 lines
346 B
C#
23 lines
346 B
C#
// Thread.cs - thread awareness
|
|
//
|
|
// Author: Alp Toker <alp@atoker.com>
|
|
//
|
|
// (c) 2002 Alp Toker
|
|
|
|
namespace GLib
|
|
{
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
public class Thread
|
|
{
|
|
[DllImport("gthread-2.0")]
|
|
static extern void g_thread_init (IntPtr i);
|
|
|
|
public static void Init ()
|
|
{
|
|
g_thread_init (IntPtr.Zero);
|
|
}
|
|
}
|
|
}
|