Home | History | Annotate | Download | only in ParallelJIT

Lines Matching full:threads

13 // separate threads.  It requires the pthreads library.
14 // The three threads are created and then block waiting on a condition variable.
15 // Once all threads are blocked on the conditional variable, the main thread
16 // wakes them up. This complicated work is performed so that all three threads
148 // All threads will stop here until another thread calls releaseThreads
159 // There are enough threads blocked that we can release all of them
160 std::cout << "Unblocking threads from block()" << std::endl;
175 // If there are num or more threads blocked, it will signal them all
176 // Otherwise, this thread blocks until there are enough OTHER threads
184 std::cout << "Unblocking threads from releaseThreads()" << std::endl;
201 // Reset the counters to zero: this way, if any new threads
202 // enter while threads are exiting, they will block instead
203 // of triggering a new release of threads
206 // Reset waitFor to zero: this way, if waitFor threads enter
207 // while threads are exiting, they will block instead of
208 // triggering a new release of threads
232 synchronize.block(); // wait until other threads are at this point
254 // Create one thread for add1 and two threads for fib
280 synchronize.releaseThreads(3); // wait until other threads are at this point