|
uvw 3.4.0
|
The once wrapper. More...
#include <thread.h>


Static Public Member Functions | |
| template<typename F> | |
| static void | run (F &&f) noexcept |
| Runs a function once and only once. | |
Additional Inherited Members | |
Public Member Functions inherited from uvw::uv_type< uv_once_t > | |
| loop & | parent () const noexcept |
| Gets the loop from which the resource was originated. | |
| const uv_once_t * | raw () const noexcept |
| Gets the underlying raw data structure. | |
| uv_once_t * | raw () noexcept |
| Gets the underlying raw data structure. | |
The once wrapper.
Runs a function once and only once. Concurrent calls to once will block all callers except one (it’s unspecified which one).
|
inlinestaticnoexcept |