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