Initializes a once synchronization control structure.
Threads Library (libpthreads.a)
#include <pthread.h>
static pthread_once_t once_block = PTHREAD_ONCE_INIT;
The PTHREAD_ONCE_INIT macro initializes the static once synchronization control structure once_block, used for one-time initializations with the pthread_once (pthread_once Subroutine) subroutine. The once synchronization control structure must be static to ensure the unicity of the initialization.
The pthread_once (pthread_once Subroutine) subroutine.
One Time Initializations in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
Threads Library Quick Reference in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.