Structure for tracking initialization.
#include <prinit.h> typedef struct PRCallOnceType { PRIntn initialized; PRInt32 inProgress; PRStatus status; } PRCallOnceType;
The structure has these fields:
initialized
inProgress
status
The client is responsible for initializing the PRCallOnceType
structure to all zeros. This initialization must be accomplished before any threading issues exist.