Пример #1
0
 private void GetTaskSpan()
 {
     if (_currentTaskBuffer.Head.Next != null)
     {
         _taskBuffer.Append(_currentTaskBuffer);
         _currentTaskBuffer = new SingleLinks <Task <bool> >();
     }
 }
Пример #2
0
 private void GetTaskSpan()
 {
     LockSend();
     if (_currentTaskBuffer.Count != 0)
     {
         _taskBuffer.Append(_currentTaskBuffer);
         _currentTaskBuffer = new SingleLinks <Task <bool> >();
     }
     ReleaseSend();
 }
Пример #3
0
 public NewRedisClient9()
 {
     _currentTaskBuffer = new SingleLinks <Task <bool> >();
     _taskBuffer        = new SingleLinks <Task <bool> >();
     _resultBuffer      = new SingleLinks <bool>();
     _protocalStart     = (byte)43;
     _handlerResultTask = new TaskCompletionSource <int>();
     _tempResultLink    = new SingleLinks <bool>();
     ResultDispatcher();
 }