CK.Core.CriticalErrorCollector.WaitOnErrorFromBackgroundThreadsPending C# (CSharp) Method

WaitOnErrorFromBackgroundThreadsPending() public method

Blocks the caller thread until no more event is waiting to be raised by OnErrorFromBackgroundThreads or is being processed. This is the right function to use instead of pooling OnErrorFromBackgroundThreadsPending.
public WaitOnErrorFromBackgroundThreadsPending ( ) : void
return void
        public void WaitOnErrorFromBackgroundThreadsPending()
        {
            lock( _endOfWorkLock )
                while( _waitingRaiseCount != 0 )
                    Monitor.Wait( _endOfWorkLock );
        }