gstreamer/gstreamer-sharp/Task.custom
Maarten Bosmans 6cb104a67a Add .dll to gstreamersharpglue DllImport
Nescessary for .NET compatibility, where .dll isn't
added for libraries with a . in the filename.
2009-05-25 12:12:35 +02:00

26 lines
613 B
Text

[DllImport ("gstreamersharpglue-0.10.dll") ]
extern static uint gstsharp_gst_task_get_cond_offset ();
static uint cond_offset = gstsharp_gst_task_get_cond_offset ();
private IntPtr CondPtr {
get {
unsafe {
IntPtr* raw_ptr = (IntPtr*) ( ( (byte*) Handle) + cond_offset);
return (*raw_ptr);
}
}
}
[DllImport ("libglib-2.0-0.dll") ]
static extern void g_cond_wait (IntPtr cond, IntPtr mutex);
[DllImport ("libglib-2.0-0.dll") ]
static extern void g_cond_signal (IntPtr cond);
public void Wait () {
g_cond_wait (CondPtr, LockPtr);
}
public void Signal () {
g_cond_signal (CondPtr);
}