Skip to content
Advertisement

Tag: cyclicbarrier

What is C++ version of Java’s cyclic barrier?

In java, multiple threads can wait all others at a certain point so that they don’t start a new block of codes before all others finish first block: is there an exact or easy convertion to C++? Also with OpenCL, there is a similar instruction: so all neighbor threads wait each other but it is only a constrained C implementation.

Advertisement