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>
|
| 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.
Definition at line 133 of file fiber.hpp.
◆ FiberThread() [1/2]
lely::util::FiberThread::FiberThread |
( |
FiberFlag |
flags | ) |
|
|
inlineexplicit |
Initializes the fiber associated with the calling thread, if it was not already initialized.
- Parameters
-
flags | any supported combination of FiberFlag::SAVE_MASK, FiberFlag::SAVE_FENV and FiberFlag::SAVE_ERROR. |
Definition at line 147 of file fiber.hpp.
◆ FiberThread() [2/2]
lely::util::FiberThread::FiberThread |
( |
FiberFlag |
flags, |
|
|
bool & |
already |
|
) |
| |
|
inline |
Initializes the fiber associated with the calling thread, if it was not already initialized.
- Parameters
-
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. |
Definition at line 162 of file fiber.hpp.
The documentation for this class was generated from the following file: