// In addition to the barrier tag, it uses two counters to keep the semaphore // count correct and not leave any late thread waiting. class GenericWaitBarrier : public CHeapObj<mtInternal> { volatileint _barrier_tag; // The number of threads waiting on or about to wait on the semaphore. volatileint _waiters; // The number of threads in the wait path, before or after the tag check. // These threads can become waiters. volatileint _barrier_threads;
Semaphore _sem_barrier;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.