12 #ifndef ZYPP_THREAD_ONCE_H 13 #define ZYPP_THREAD_ONCE_H 27 #define ZYPP_ONCE_INIT PTHREAD_ONCE_INIT 48 void callOnce(OnceFlag& flag,
void (*func)());
50 inline void callOnce(OnceFlag& flag,
void (*func)())
52 pthread_once(&flag, func);
62 #endif // ZYPP_THREAD_ONCE_H pthread_once_t OnceFlag
The OnceFlag variable type.
void callOnce(OnceFlag &flag, void(*func)())
Call once function.
Easy-to use interface to the ZYPP dependency resolver.