Ejemplo n.º 1
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();
 }
Ejemplo n.º 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();
 }