Amib.Threading.Internal.WorkItem.GetWaitHandle C# (CSharp) Method

GetWaitHandle() private method

A wait handle to wait for completion, cancel, or timeout
private GetWaitHandle ( ) : WaitHandle
return System.Threading.WaitHandle
        private WaitHandle GetWaitHandle()
        {
            lock (this)
            {
                if (null == _workItemCompleted)
                {
                    _workItemCompleted = EventWaitHandleFactory.CreateManualResetEvent(IsCompleted);
                }
                ++_workItemCompletedRefCount;
            }
            return _workItemCompleted;
        }