b3Barrier* b3Win32ThreadSupport::createBarrier() { unsigned char* mem = (unsigned char*)b3AlignedAlloc(sizeof(b3Win32Barrier),16); b3Win32Barrier* barrier = new(mem) b3Win32Barrier(); barrier->setMaxCount(getNumTasks()); return barrier; }
void popAll (void) { while (getNumTasks()) pop(); }
b3Barrier* b3PosixThreadSupport::createBarrier() { b3PosixBarrier* barrier = new b3PosixBarrier(); barrier->setMaxCount(getNumTasks()); return barrier; }