Exemple #1
0
 private void notifyReadEvent()
 {
     if (_readProcessing.CompareAndSet(false, true))
     {
         var readTask = ReadTask.New(this);
         _iMessageExecutor.execute(readTask);
     }
 }
        public static void en()
        {
            int i = 0;

            while (true)
            {
                var queueTest = new MessageExecutorTest(i);
                if (_messageExecutor.execute(queueTest))
                {
                    i++;
                }
            }
        }
Exemple #3
0
 public void Run(ITimeout timeout)
 {
     _imessageExecutor.execute(this);
 }