Example #1
0
 internal WorkerThread(SimpleLooper manager, Action <object> threadStart, object initializationInformation)
 {
     this.manager                   = manager;
     Thread                         = new Thread(ThreadExecutionLoop);
     Thread.IsBackground            = true;
     taskQueue                      = new Queue <Action <object> >();
     taskInformationQueue           = new Queue <object>();
     this.threadStart               = threadStart;
     this.initializationInformation = initializationInformation;
     Thread.Start();
 }
 internal WorkerThread(SimpleLooper manager, Action<object> threadStart, object initializationInformation)
 {
     this.manager = manager;
     Thread = new Thread(ThreadExecutionLoop);
     Thread.IsBackground = true;
     taskQueue = new Queue<Action<object>>();
     taskInformationQueue = new Queue<object>();
     this.threadStart = threadStart;
     this.initializationInformation = initializationInformation;
     Thread.Start();
 }