Dynamically initializes a once_control.
#include <pthread.h>
typedef int pthread_once_t;
int pthread_once (
pthread_once_t *once_control,
void (*init_routine)(void));
(IN) Points to a once_control object.
(IN) Points to function that initializes the once_control.
If successful, returns 0; otherwise, returns a nonzero error code:
The first thread in a process to call pthread_once initializes the once_control. Subsequent calls do not call the init_routine and have no affect.