Core/CafeLib.Core.Collections/Queues/ReaderWriterPriorityQueue.cs
/// <summary>
/// Enqueue a request context and release the semaphore that
/// a thread is waiting on.
/// </summary>
/// <param name="item"></param>
/// <param name="priority"></param>
Enqueue a request context and release the semaphore that
a thread is waiting on.
Enqueue a request context and release the semaphore that a thread is waiting on .
public void Enqueue(T item, int priority)
        {
            _queue.Enqueue(item, priority);
            _consumer.Wait();
            _producer.Release();
        }
public void Enqueue ( T item , int priority ) { _queue . Enqueue ( item , priority ) ; _consumer . Wait ( ) ; _producer . Release ( ) ; }
Enqueue a request context and release the semaphore that
a thread is waiting on.
Enqueue a request context and release the semaphore that a thread is waiting on .
item
T
None
priority
int
None