Exemplo n.º 1
0
 public void Start()
 {
     ConsoleSemaphore           = new Semaphore();
     ConsoleThread              = new Thread(RenderConsole);
     ConsoleThread.IsBackground = false;
     ConsoleThread.Start();
 }
 /// <summary>
 /// Initializes a new instance of BoundedChannel.
 /// </summary>
 /// <param name="barrierLimit">
 /// Specifies the boundary of the BoundedChannel.
 /// </param>
 public BoundedChannel(uint boundary)
 {
     _upperBoundary = new Semaphore(boundary);
 }