uvw  2.11.0
Public Member Functions | List of all members
uvw::Barrier Class Referencefinal

The Barrier wrapper. More...

#include <thread.h>

Inheritance diagram for uvw::Barrier:
Inheritance graph
[legend]
Collaboration diagram for uvw::Barrier:
Collaboration graph
[legend]

Public Member Functions

bool wait () noexcept
 Synchronizes at a barrier. More...
 
- Public Member Functions inherited from uvw::UnderlyingType< Barrier, uv_barrier_t >
Looploop () const noexcept
 Gets the loop from which the resource was originated. More...
 
const uv_barrier_t * raw () const noexcept
 Gets the underlying raw data structure. More...
 
uv_barrier_t * raw () noexcept
 Gets the underlying raw data structure. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from uvw::UnderlyingType< Barrier, uv_barrier_t >
static std::shared_ptr< Barriercreate (Args &&... args)
 Creates a new resource of the given type. More...
 

Detailed Description

The Barrier wrapper.

To create a Barrier through a Loop, arguments follow:

Definition at line 347 of file thread.h.

Member Function Documentation

◆ wait()

bool uvw::Barrier::wait ( )
noexcept

Synchronizes at a barrier.

Returns
True in case of success, false otherwise.

The documentation for this class was generated from the following file: