public static ThreadedActionInvoker ToThreadedActionInvoker(ThreadedAction handler) { var x = new __ThreadedActionInvoker { Handler = handler }; object t = new __Thread { InternalValue = new java.lang.Thread(x) }; x.Thread = (System.Threading.Thread)t; return(x); }
// Shim to call a C++ object from a posix thread start. //void *AppLocal::ThreadStarter( void * parm ) static object AppThreadFunction(__Thread that) { that.__ThreadStart(); return null; }