c0b574a686
* mapdllnames.pl : a little whitespace action * api/*-api.xml : move to win32 dllnames * */makefile.win32 : remove the mapdllnames step * */*.cs : move to win32 dllnames * */*.custom : move to win32 dllnames * sources/gtk-sharp.sources : move to win32 dllnames svn path=/trunk/gtk-sharp/; revision=11823
38 lines
641 B
C#
38 lines
641 B
C#
// Threads.cs - thread awareness
|
|
//
|
|
// Author: Alp Toker <alp@atoker.com>
|
|
//
|
|
// (c) 2002 Alp Toker
|
|
|
|
namespace Gdk
|
|
{
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
public class Threads
|
|
{
|
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
|
static extern void gdk_threads_init ();
|
|
|
|
public static void Init ()
|
|
{
|
|
gdk_threads_init ();
|
|
}
|
|
|
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
|
static extern void gdk_threads_enter ();
|
|
|
|
public static void Enter ()
|
|
{
|
|
gdk_threads_enter ();
|
|
}
|
|
|
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
|
static extern void gdk_threads_leave ();
|
|
|
|
public static void Leave ()
|
|
{
|
|
gdk_threads_leave ();
|
|
}
|
|
}
|
|
}
|