Пример #1
0
        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);
        }
Пример #2
0
        // 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;
        }