Beispiel #1
0
 public LockTicket <T> TryWrite(int millisecondsTimeout)
 {
     return(LockTicket <T> .Create(this, LockTypeEnum.Write, TimeSpan.FromMilliseconds(millisecondsTimeout)));
 }
Beispiel #2
0
 public LockTicket <T> TryWrite(TimeSpan timeout)
 {
     return(LockTicket <T> .Create(this, LockTypeEnum.Write, timeout));
 }
Beispiel #3
0
 public LockTicket <T> Write()
 {
     return(LockTicket <T> .Create(this, LockTypeEnum.Write, TimeSpan.FromMilliseconds(-1)));
 }
Beispiel #4
0
 public LockTicket <T> TryRead(TimeSpan timeout)
 {
     return(LockTicket <T> .Create(this, LockTypeEnum.Read, timeout));
 }
Beispiel #5
0
 public LockTicket <T> TryLock(LockTypeEnum lockType, TimeSpan timeout)
 {
     return(LockTicket <T> .Create(this, lockType, timeout));
 }
Beispiel #6
0
 public LockTicket <T> TryLock(LockTypeEnum lockType, int millisecondsTimeout)
 {
     return(LockTicket <T> .Create(this, lockType, TimeSpan.FromMilliseconds(millisecondsTimeout)));
 }
Beispiel #7
0
 public LockTicket <T> Lock(LockTypeEnum lockType)
 {
     return(LockTicket <T> .Create(this, lockType, TimeSpan.FromMilliseconds(-1)));
 }