Lely core libraries
2.2.5
|
Convenience class providing a RAII-style mechanism to ensure the fiber associated with the calling thread is intialized for the duration of a scoped block. More...
#include <fiber.hpp>
Public Member Functions | |
FiberThread () | |
Equivalent to #FiberThread(static_cast<FiberFlag>(0)) . | |
FiberThread (FiberFlag flags) | |
Initializes the fiber associated with the calling thread, if it was not already initialized. More... | |
FiberThread (FiberFlag flags, bool &already) | |
Initializes the fiber associated with the calling thread, if it was not already initialized. More... | |
~FiberThread () | |
Finalizes the fiber associated with the calling thread, unless another instance of this class is still in scope. | |
Convenience class providing a RAII-style mechanism to ensure the fiber associated with the calling thread is intialized for the duration of a scoped block.
|
inlineexplicit |
Initializes the fiber associated with the calling thread, if it was not already initialized.
flags | any supported combination of FiberFlag::SAVE_MASK, FiberFlag::SAVE_FENV and FiberFlag::SAVE_ERROR. |
|
inline |
Initializes the fiber associated with the calling thread, if it was not already initialized.
flags | any supported combination of FiberFlag::SAVE_MASK, FiberFlag::SAVE_FENV and FiberFlag::SAVE_ERROR. |
already | set to true if the fiber associated with the calling thread was already initialized, and to false if not. In the former case, the value of flags is ignored. |