/// <summary> /// Returns the WaitEntry of the current thread /// </summary> /// <returns></returns> /// In order to avoid creation and destuction of WaitEntry /// objects each thread has its own WaitEntry object. private WaitEntry GetThreadWaitEntry() { if (null == _waitEntry) { _waitEntry = new WaitEntry(); } _waitEntry.Reset(); return(_waitEntry); }