public FifoSemaphore ( int tokens ) : System.Collections.Generic | ||
tokens | int | The number of tokens the semaphore will start with |
return | System.Collections.Generic |
public FifoSemaphore(int tokens)
{
_tokens = tokens;
_waitQueue = new Queue<Waiter>();
}