Example #1
0
 public void Start()
 {
     UpdateThreadWaiter        = Platform.GetThreadEvent();
     UpdateThread              = Platform.CreateWorkerThread(TimerLoop);
     UpdateThread.IsBackground = true;
     UpdateThread.Start();
 }
 public WorkItem(IThreadEvent handler, ManualResetEvent finishEvent, int p, int n, int id, Container container)
 {
     _handler     = handler;
     _finishEvent = finishEvent;
     _p           = p;
     _n           = n;
     _id          = id;
     _container   = container;
 }
Example #3
0
 public void Start()
 {
     UpdateThreadWaiter = Platform.GetThreadEvent ();
     UpdateThread = Platform.CreateWorkerThread (TimerLoop);
     UpdateThread.IsBackground = true;
     UpdateThread.Start ();
 }
 public PivotsCycleCounter(IThreadEvent handler, INeighbourshipContainer container, 
     int pivot, int cycleLength)
 {
     _handler = handler;
     _container = container;
     _pivot = pivot;
     _cycleLength = cycleLength;
 }