|
IntrOS
|
once flags (one-time call of a function) More...
Macros | |
| #define | OS_ONE(one) |
| define and initialize a once flag object | |
| #define | static_ONE(one) |
| static alias of OS_ONE() | |
| #define | ONE_INIT() |
| create and initialize a once flag object | |
| #define | ONE_CREATE() |
| create and initialize a once flag object | |
| #define | ONE_NEW ONE_CREATE |
| alias of ONE_CREATE() | |
Typedefs | |
| typedef uint_fast8_t | one_t |
| once flag | |
Functions | |
| void | one_init (one_t *one) |
| initialize a once flag object | |
| void | one_call (one_t *one, fun_t *fun) |
| try to execute given function | |
once flags (one-time call of a function)
| #define OS_ONE | ( | one | ) |
| #define ONE_INIT | ( | ) |
create and initialize a once flag object
| #define ONE_CREATE | ( | ) |
|
inline |
initialize a once flag object
| one | pointer to once flag object |
try to execute given function
if the once flag has been previously set, the function is not executed
| one | pointer to once flag object |
| fun | pointer to once function |