Function and its arguments, allocated on Base's heap. More...
#include <StormByte/safe/thread.hxx>

Public Member Functions | |
| STORMBYTE_FORCE_INLINE | FunctionState (Function< void(Args...)> &&fn, Args &&... args) |
| Capture the callback and its arguments. | |
Static Public Member Functions | |
| static STORMBYTE_FORCE_INLINE void | Run (void *raw) |
Invoke Call and destroy the state. | |
Public Attributes | |
| Function< void(Args...)> | function |
| Creator-owned callback. | |
| std::tuple< Args... > | arguments |
| Arguments captured before the execution starts. | |
Function and its arguments, allocated on Base's heap.
| Args | Argument types of the void function. |
Call runs in the new execution. Its Status stays there. A Base exception does not escape: an uncaught exception would terminate the process.
|
inline |
Capture the callback and its arguments.
| fn | Callback. Moved. |
| args | Arguments. |
|
inlinestatic |
Invoke Call and destroy the state.
| raw | State address. Not null. |
| std::tuple<Args...> StormByte::Safe::Detail::FunctionState< Args >::arguments |
Arguments captured before the execution starts.
| Function<void(Args...)> StormByte::Safe::Detail::FunctionState< Args >::function |
Creator-owned callback.