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. | |
Public Member Functions | |
KZ_NO_DISCARD void * | getFiberData () const noexcept |
Gets the associated data for this fiber. | |
KZ_NO_DISCARD void * | getNativeHandle () const noexcept |
Gets the native fiber handle. | |
void | switchToFiber () const noexcept |
Switches to this fiber. | |
Win32Fiber (FiberProcPointer fiberRoutine, DefaultFiberContext *fiberData) | |
Constructor. | |
Win32Fiber (void *fiber) | |
Constructor. | |
Static Public Member Functions | |
static bool | convertFiberToThread () noexcept |
Converts the current fiber to thread. | |
static KZ_NO_DISCARD void * | convertThreadToFiber () noexcept |
Converts the current thread to fiber. | |
static KZ_NO_DISCARD void * | getCurrentFiber () noexcept |
Gets the current fiber handle. | |
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.
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.