Example #1
0
 /// <summary>
 /// Enqueue a copy of the specified <see cref="DataFragment"/>
 /// </summary>
 /// <param name="data"></param>
 private void EnqueueDataFragment(DataFragment data)
 {
     lock (_sync) {
         _queue.Enqueue(data.Isolate());
         Monitor.PulseAll(_sync);
     }
 }
Example #2
0
 //Set the response
 protected void SetSuccessfulResult(DataFragment data)
 {
     _results.Enqueue(data.Isolate());
     _event.Set();
 }
Example #3
0
 /// <summary>
 /// Enqueue a copy of the specified <see cref="DataFragment"/>
 /// </summary>
 /// <param name="data"></param>
 private void EnqueueDataFragment(DataFragment data)
 {
     lock (_sync) {
         _queue.Enqueue(data.Isolate());
         Monitor.PulseAll(_sync);
     }
 }
Example #4
0
 //Set the response
 protected void SetSuccessfulResult(DataFragment data) {
     _results.Enqueue(data.Isolate());
     _event.Set();
 }