Changeset 102241 in vbox for trunk/src/libs/xpcom18a4/nsprpub
- Timestamp:
- Nov 22, 2023 10:31:33 AM (14 months ago)
- Location:
- trunk/src/libs/xpcom18a4/nsprpub/pr
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/nsprpub/pr/include/private/primpl.h
r102234 r102241 94 94 }; 95 95 96 extern void _PR_InitLocks(void);97 98 96 struct PRCondVar { 99 97 PRLock *lock; /* associated lock that protects the condition */ … … 114 112 /************************************************************************/ 115 113 116 extern PRBool _pr_initialized;117 extern void _PR_ImplicitInitialization(void);118 119 114 PR_END_EXTERN_C 120 115 -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptsynch.c
r102240 r102241 108 108 static pthread_condattr_t _pt_cvar_attr; 109 109 110 static PRBool _pr_initialized = PR_FALSE; 111 110 112 static void PR_DestroyCondVar(PRCondVar *cvar); 111 113 … … 116 118 /**************************************************************/ 117 119 118 void _PR_InitLocks(void) 119 { 120 static void _PR_InitLocks(void) 121 { 122 _pr_initialized = PR_TRUE; 123 120 124 int rv; 121 125 rv = _PT_PTHREAD_MUTEXATTR_INIT(&_pt_mattr); … … 395 399 PRCondVar *cvar; 396 400 397 if (!_pr_initialized) _PR_I mplicitInitialization();401 if (!_pr_initialized) _PR_InitLocks(); 398 402 399 403 cvar = PR_NEWZAP(PRCondVar);
Note:
See TracChangeset
for help on using the changeset viewer.