2013-10-09 11:09:34 +00:00
|
|
|
// This file was generated by the Gtk# code generator.
|
|
|
|
// Any changes made will be lost if regenerated.
|
|
|
|
|
|
|
|
namespace GLib {
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
|
|
|
#region Autogenerated code
|
|
|
|
public partial class Cond : GLib.Opaque {
|
2017-10-03 13:18:08 +00:00
|
|
|
public struct ABI {
|
|
|
|
IntPtr p;
|
|
|
|
int i1;
|
|
|
|
int i2;
|
|
|
|
}
|
2019-10-02 15:28:33 +00:00
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
2018-01-17 20:31:39 +00:00
|
|
|
delegate void d_g_cond_broadcast(IntPtr raw);
|
2018-01-18 21:54:45 +00:00
|
|
|
static d_g_cond_broadcast g_cond_broadcast = FuncLoader.LoadFunction<d_g_cond_broadcast>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GLib), "g_cond_broadcast"));
|
2013-10-09 11:09:34 +00:00
|
|
|
|
|
|
|
public void Broadcast() {
|
|
|
|
g_cond_broadcast(Handle);
|
|
|
|
}
|
2019-10-02 15:28:33 +00:00
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
2018-01-17 20:31:39 +00:00
|
|
|
delegate void d_g_cond_clear(IntPtr raw);
|
2018-01-18 21:54:45 +00:00
|
|
|
static d_g_cond_clear g_cond_clear = FuncLoader.LoadFunction<d_g_cond_clear>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GLib), "g_cond_clear"));
|
2013-10-09 11:09:34 +00:00
|
|
|
|
|
|
|
public void Clear() {
|
|
|
|
g_cond_clear(Handle);
|
|
|
|
}
|
2019-10-02 15:28:33 +00:00
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
2018-01-17 20:31:39 +00:00
|
|
|
delegate void d_g_cond_init(IntPtr raw);
|
2018-01-18 21:54:45 +00:00
|
|
|
static d_g_cond_init g_cond_init = FuncLoader.LoadFunction<d_g_cond_init>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GLib), "g_cond_init"));
|
2013-10-09 11:09:34 +00:00
|
|
|
|
|
|
|
public void Init() {
|
|
|
|
g_cond_init(Handle);
|
|
|
|
}
|
2019-10-02 15:28:33 +00:00
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
2018-01-17 20:31:39 +00:00
|
|
|
delegate void d_g_cond_signal(IntPtr raw);
|
2018-01-18 21:54:45 +00:00
|
|
|
static d_g_cond_signal g_cond_signal = FuncLoader.LoadFunction<d_g_cond_signal>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GLib), "g_cond_signal"));
|
2013-10-09 11:09:34 +00:00
|
|
|
|
|
|
|
public void Signal() {
|
|
|
|
g_cond_signal(Handle);
|
|
|
|
}
|
2019-10-02 15:28:33 +00:00
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
2018-01-17 20:31:39 +00:00
|
|
|
delegate void d_g_cond_wait(IntPtr raw, IntPtr mutex);
|
2018-01-18 21:54:45 +00:00
|
|
|
static d_g_cond_wait g_cond_wait = FuncLoader.LoadFunction<d_g_cond_wait>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GLib), "g_cond_wait"));
|
2013-10-09 11:09:34 +00:00
|
|
|
|
|
|
|
public void Wait(GLib.Mutex mutex) {
|
2013-10-09 16:44:04 +00:00
|
|
|
g_cond_wait(Handle, mutex == null ? IntPtr.Zero : mutex.Handle);
|
2013-10-09 11:09:34 +00:00
|
|
|
}
|
2019-10-02 15:28:33 +00:00
|
|
|
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
2018-01-17 20:31:39 +00:00
|
|
|
delegate bool d_g_cond_wait_until(IntPtr raw, IntPtr mutex, long end_time);
|
2018-01-18 21:54:45 +00:00
|
|
|
static d_g_cond_wait_until g_cond_wait_until = FuncLoader.LoadFunction<d_g_cond_wait_until>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GLib), "g_cond_wait_until"));
|
2013-10-09 11:09:34 +00:00
|
|
|
|
|
|
|
public bool WaitUntil(GLib.Mutex mutex, long end_time) {
|
2013-10-09 16:44:04 +00:00
|
|
|
bool raw_ret = g_cond_wait_until(Handle, mutex == null ? IntPtr.Zero : mutex.Handle, end_time);
|
2013-10-09 11:09:34 +00:00
|
|
|
bool ret = raw_ret;
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Cond(IntPtr raw) : base(raw) {}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
}
|
2019-10-02 15:28:33 +00:00
|
|
|
|