Ejemplo n.º 1
0
        public NativeThread(NativeThreadStart start)
        {
#if !FIRST_PASS
            peerTask = new Task(delegate()
            {
                start.Invoke();
            }, new System.Threading.CancellationToken(), TaskCreationOptions.LongRunning);
            threads.Add(peerTask.Id, this);
#endif
        }
Ejemplo n.º 2
0
 public override void init(NativeThreadStart start)
 {
     peerTask = new Task(delegate()
     {
         start.Invoke();
     }, new System.Threading.CancellationToken(), TaskCreationOptions.LongRunning);
     lock (threads)
     {
         threads.Add(peerTask.Id, this);
     }
 }
Ejemplo n.º 3
0
 public override void init(NativeThreadStart start)
 {
     peerTask = new Task(delegate ()
     {
         start.Invoke();
     }, new System.Threading.CancellationToken(), TaskCreationOptions.LongRunning);
     lock(threads)
     {
         threads.Add(peerTask.Id, this);
     }
 }