diff options
Diffstat (limited to 'global.c')
| -rw-r--r-- | global.c | 11 | 
1 files changed, 11 insertions, 0 deletions
| @@ -107,6 +107,17 @@ CRITICAL_SECTION ptw32_spinlock_test_init_lock;   */  CRITICAL_SECTION ptw32_cond_list_lock; +/* + * Global condition variable and mutex for once_control management. + * The mutex must be an ERRORCHECK type because we need to + * guarantee ownership when unlocking. + */ +ptw32_once_control_t ptw32_once_control = +  { +    PTHREAD_COND_INITIALIZER, +    PTHREAD_ERRORCHECK_MUTEX_INITIALIZER +  }; +  #ifdef _UWIN  /*   * Keep a count of the number of threads. | 
