|
libxr
1.0
Want to be the best embedded framework
|
Public Member Functions | |
| GuardedCallbackBlock (typename CallbackBlock< ArgType, Args... >::FunctionType fun, ArgType &&arg) | |
| 带防重入保护的回调块 / Callback block with reentry guard | |
Public Member Functions inherited from LibXR::CallbackBlock< ArgType, Args... > | |
| CallbackBlock (FunctionType fun, ArgType &&arg) | |
| 构造回调块,绑定回调函数与参数 / Construct a callback block with bound function and argument | |
| CallbackBlock (const CallbackBlock &other)=delete | |
| 禁用拷贝构造与拷贝赋值 / Copy construction and copy assignment are disabled | |
| CallbackBlock & | operator= (const CallbackBlock &other)=delete |
Static Public Member Functions | |
| static void | InvokeThunk (void *cb_block, bool in_isr, Args... args) |
Static Public Member Functions inherited from LibXR::CallbackBlock< ArgType, Args... > | |
| static void | InvokeThunk (void *cb_block, bool in_isr, Args... args) |
Private Attributes | |
| bool | running_ = false |
| bool | pending_ = false |
| std::tuple< std::decay_t< Args >... > | pending_args_ {} |
Additional Inherited Members | |
Public Types inherited from LibXR::CallbackBlock< ArgType, Args... > | |
| using | FunctionType |
| 回调函数类型定义 / Callback function type definition | |
Public Types inherited from LibXR::CallbackBlockHeader< Args... > | |
| using | InvokeFunType |
Data Fields inherited from LibXR::CallbackBlockHeader< Args... > | |
| InvokeFunType | run_fun_ |
Protected Member Functions inherited from LibXR::CallbackBlock< ArgType, Args... > | |
| void | Invoke (bool in_isr, Args... args) |
Protected Attributes inherited from LibXR::CallbackBlock< ArgType, Args... > | |
| FunctionType | fun_ |
| 绑定的回调函数 / Bound callback function | |
| ArgType | arg_ |
| 绑定的参数 / Bound argument | |
Definition at line 81 of file libxr_cb.hpp.
|
inline |
带防重入保护的回调块 / Callback block with reentry guard
与 CallbackBlock 一样,这里直接接收精确的函数指针类型。 Same as CallbackBlock, this constructor takes the exact callback function-pointer type directly.
Definition at line 91 of file libxr_cb.hpp.
|
inlinestatic |
Definition at line 98 of file libxr_cb.hpp.
|
private |
Definition at line 128 of file libxr_cb.hpp.
|
private |
Definition at line 129 of file libxr_cb.hpp.
|
private |
Definition at line 127 of file libxr_cb.hpp.