3 #ifndef INCLUDE_NN_NLIB_THREADING_BARRIER_H_ 4 #define INCLUDE_NN_NLIB_THREADING_BARRIER_H_ 24 if (is_initialized_) {
31 if (is_initialized_)
return EAGAIN;
35 is_initialized_ =
true;
39 NLIB_ASSERT(is_initialized_);
53 #endif // INCLUDE_NN_NLIB_THREADING_BARRIER_H_
Synchronizes an arbitrary number of threads.
errno_t Init(unsigned int count) noexcept
Initializes a barrier.
#define NLIB_NOEXCEPT
Defines noexcept geared to the environment, or the equivalent.
A file that contains the configuration information for each development environment.
#define NLIB_FINAL
Defines final if it is available for use. If not, holds an empty string.
errno_t Wait() noexcept
Waits for a thread.