Example #1
0
 internal void Wait()
 {
     if (cacheTypes == null || cacheTypes.Count != 0)
     {
         wait.Wait();
     }
 }
Example #2
0
 public AwaiterResult <ReturnValue> Wait()
 {
     waitHandle.Wait();
     return(new AwaiterResult <ReturnValue> {
         Result = returnValue
     });
 }
Example #3
0
 public void WaitMember(int memberIndex)
 {
     byte[] waitMap = this.waitMap;
     if (waitMap != null && (waitMap[memberIndex >> 3] & (1 << (int)(memberIndex & 7))) != 0)
     {
         wait.Wait();
     }
 }
Example #4
0
 public valueType Wait()
 {
     if (value == null)
     {
         wait.Wait();
     }
     return(value);
 }
Example #5
0
 /// <summary>
 /// 释放资源
 /// </summary>
 public void Dispose()
 {
     isDisposed = true;
     if (isWaitFinally)
     {
         finallyWait.Wait();
     }
 }
Example #6
0
 public AwaiterResult <ReturnValue> Wait()
 {
     waitHandle.Wait();
     return(new AwaiterResult <ReturnValue> {
         Result = new ReturnValue {
             Type = returnType
         }
     });
 }