public CThread(CThreadWorkCompleteCallback completeCallback) { this._completeCallback = completeCallback; this._thread = new Thread(new ThreadStart(this.DoTask)); this._thread.IsBackground = true; this._threadID = this._thread.ManagedThreadId; }
public CThread(CThreadWorkCompleteCallback completeCallback) { _newJobWaitHandle = new ManualResetEvent(false); _completeCallback = completeCallback; _thread = new Thread(DoTask); _thread.IsBackground = true; _threadID = _thread.ManagedThreadId; }