SYNOPSIS
#include <pthread.h>
int pthread_once(pthread_once_t *once_control, void (*init_routine) (void));
pthread_once_t once_control = PTHREAD_ONCE_INIT
DESCRIPTION
The first call to
The
The constant PTHREAD_ONCE_INIT is defined in the <pthread.h>.
PARAMETERS
- init_routine
-
Specifies an initialize routine to be run.
- once_control
-
Determines whether the associated initialization routine has been called.
RETURN VALUES
On success,
CONFORMANCE
UNIX 03.
MULTITHREAD SAFETY LEVEL
MT-safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.5 Documentation Build 40.