Example #1
0
        public T WaitNext(int nTimeOutMs)
        {
            if (GotNewMessageEvent.WaitOne(nTimeOutMs) == false)
            {
                return(default(T));
            }

            return(PopNextMessage());
        }
Example #2
0
 public T[] WaitAll(int nTimeOutMs)
 {
     GotNewMessageEvent.WaitOne(nTimeOutMs);
     return(PopAllMessages());
 }