예제 #1
0
파일: Barrier.cs 프로젝트: katadam/wockets
 /// <summary>
 /// Initializes the barrier
 /// </summary>
 /// <param name="n">Number of threads to gather at the barrier</param>
 public Barrier(int n)
 {
     numSynchronizedThreads = count = n;
     monitor = new MonitorEx();
 }
예제 #2
0
 /// <summary>
 /// Initializes the barrier
 /// </summary>
 /// <param name="n">Number of threads to gather at the barrier</param>
 public Barrier(int n)
 {
     numSynchronizedThreads = count = n;
     monitor = new MonitorEx();
 }