P99
|
◆ P99_DEFINE_ONCE_CHAIN
Value:
p99_once_flag p99_ ## T ## _once; \
void p00_ ## T ## _once_init(void)
Define a function that will be called exactly once by The function has a prototype of T can be any valid identifier, the real function name will be mangled such that it will not clash with an existing name. The ... list (optional) can be used to give a list of dependencies from other P99_INIT_CHAIN functions. P99_DEFINE_ONCE_CHAIN(toto) {
// initialize some shared ressource
}
P99_DEFINE_ONCE_CHAIN(tutu, toto) {
// empty
}
This will ensure that
Definition at line 237 of file p99_threads.h. |