Class that represents the Win32 fiber. More...
#include <kanzi/core.ui/platform/windowing_ng/win32/win32_fiber.hpp>
Public Types | |
typedef void(* | FiberProcPointer) (DefaultFiberContext *) |
Pointer to Win32 fiber function. More... | |
Public Member Functions | |
KZ_NO_DISCARD void * | getFiberData () const noexcept |
Gets the associated data for this fiber. More... | |
KZ_NO_DISCARD void * | getNativeHandle () const noexcept |
Gets the native fiber handle. More... | |
void | switchToFiber () const noexcept |
Switches to this fiber. More... | |
Win32Fiber (void *fiber) | |
Constructor. More... | |
Win32Fiber (FiberProcPointer fiberRoutine, DefaultFiberContext *fiberData) | |
Constructor. More... | |
Static Public Member Functions | |
static bool | convertFiberToThread () noexcept |
Converts the current fiber to thread. More... | |
static KZ_NO_DISCARD void * | convertThreadToFiber () noexcept |
Converts the current thread to fiber. More... | |
static KZ_NO_DISCARD void * | getCurrentFiber () noexcept |
Gets the current fiber handle. More... | |
Class that represents the Win32 fiber.
typedef void(* kanzi::win32::Win32Fiber::FiberProcPointer) (DefaultFiberContext *) |
Pointer to Win32 fiber function.
|
explicit |
Constructor.
fiber | Fiber handle. |
|
explicit |
Constructor.
fiberRoutine | The routine for the fiber to execute. |
fiberData | Fiber data to pass to the fiber routine. |
|
staticnoexcept |
Converts the current thread to fiber.
|
staticnoexcept |
Converts the current fiber to thread.
|
staticnoexcept |
Gets the current fiber handle.
|
noexcept |
Switches to this fiber.
|
noexcept |
Gets the associated data for this fiber.
|
noexcept |
Gets the native fiber handle.