public SimpleAsyncThreadFuncWrapper(GLib.SimpleAsyncThreadFunc managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new SimpleAsyncThreadFuncNative(NativeCallback);
     }
 }
		public SimpleAsyncThreadFuncWrapper (GLib.SimpleAsyncThreadFunc managed)
		{
			this.managed = managed;
			if (managed != null)
				NativeDelegate = new SimpleAsyncThreadFuncNative (NativeCallback);
		}
示例#3
0
 public void RunInThread(GLib.SimpleAsyncThreadFunc func, int io_priority, GLib.Cancellable cancellable)
 {
     GLibSharp.SimpleAsyncThreadFuncWrapper func_wrapper = new GLibSharp.SimpleAsyncThreadFuncWrapper(func);
     g_simple_async_result_run_in_thread(Handle, func_wrapper.NativeDelegate, io_priority, cancellable == null ? IntPtr.Zero : cancellable.Handle);
 }