mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 19:25:31 +00:00
63 lines
1.9 KiB
C#
63 lines
1.9 KiB
C#
// 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 RecMutex : GLib.Opaque {
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public struct ABI {
|
|
IntPtr p;
|
|
int i1;
|
|
int i2;
|
|
}
|
|
|
|
|
|
delegate void d_g_rec_mutex_clear(IntPtr raw);
|
|
static d_g_rec_mutex_clear g_rec_mutex_clear = FuncLoader.LoadFunction<d_g_rec_mutex_clear>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GLib), "g_rec_mutex_clear"));
|
|
|
|
public void Clear() {
|
|
g_rec_mutex_clear(Handle);
|
|
}
|
|
|
|
delegate void d_g_rec_mutex_init(IntPtr raw);
|
|
static d_g_rec_mutex_init g_rec_mutex_init = FuncLoader.LoadFunction<d_g_rec_mutex_init>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GLib), "g_rec_mutex_init"));
|
|
|
|
public void Init() {
|
|
g_rec_mutex_init(Handle);
|
|
}
|
|
|
|
delegate void d_g_rec_mutex_lock(IntPtr raw);
|
|
static d_g_rec_mutex_lock g_rec_mutex_lock = FuncLoader.LoadFunction<d_g_rec_mutex_lock>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GLib), "g_rec_mutex_lock"));
|
|
|
|
public void Lock() {
|
|
g_rec_mutex_lock(Handle);
|
|
}
|
|
|
|
delegate bool d_g_rec_mutex_trylock(IntPtr raw);
|
|
static d_g_rec_mutex_trylock g_rec_mutex_trylock = FuncLoader.LoadFunction<d_g_rec_mutex_trylock>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GLib), "g_rec_mutex_trylock"));
|
|
|
|
public bool Trylock() {
|
|
bool raw_ret = g_rec_mutex_trylock(Handle);
|
|
bool ret = raw_ret;
|
|
return ret;
|
|
}
|
|
|
|
delegate void d_g_rec_mutex_unlock(IntPtr raw);
|
|
static d_g_rec_mutex_unlock g_rec_mutex_unlock = FuncLoader.LoadFunction<d_g_rec_mutex_unlock>(FuncLoader.GetProcAddress(GLibrary.Load(Library.GLib), "g_rec_mutex_unlock"));
|
|
|
|
public void Unlock() {
|
|
g_rec_mutex_unlock(Handle);
|
|
}
|
|
|
|
public RecMutex(IntPtr raw) : base(raw) {}
|
|
|
|
#endregion
|
|
}
|
|
}
|