コード例 #1
0
 public IOSchedulerJobFuncWrapper(GLib.IOSchedulerJobFunc managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new IOSchedulerJobFuncNative(NativeCallback);
     }
 }
コード例 #2
0
		public IOSchedulerJobFuncWrapper (GLib.IOSchedulerJobFunc managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new IOSchedulerJobFuncNative (NativeCallback);
		}
コード例 #3
0
 public static void SchedulerPushJob(GLib.IOSchedulerJobFunc job_func, GLib.DestroyNotify notify, int io_priority, GLib.Cancellable cancellable)
 {
     GLibSharp.IOSchedulerJobFuncWrapper job_func_wrapper = new GLibSharp.IOSchedulerJobFuncWrapper(job_func);
     g_io_scheduler_push_job(job_func_wrapper.NativeDelegate, IntPtr.Zero, notify, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle);
 }