16 #ifndef INCLUDE_NN_NLIB_THREADING_BARRIER_H_ 17 #define INCLUDE_NN_NLIB_THREADING_BARRIER_H_ 37 if (is_initialized_) {
44 if (is_initialized_)
return EAGAIN;
48 is_initialized_ =
true;
52 NLIB_ASSERT(is_initialized_);
66 #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.