Exemple #1
0
 public void Enqueue(Work work)
 {
     _workQueue.Enqueue(work);
     _semaphore.Release();
 }
Exemple #2
0
 public void Enqueue(Work work)
 {
     _workQueue.Enqueue(work);
     _syncSource.TrySetResult(true);
 }