chsvlib
chsv helper source code

◆ latch()

latch ( std::ptrdiff_t  count)
explicit

Constructs a latch for synchronizing the specified number of threads.

Parameters
countA number of threads to synchronize. The behavior is undefined, if n is negative. If n is zero, the constructed latch cannot be used for blocking synchronization.