Changeset 20351 in webkit for trunk/JavaScriptCore/kjs/JSLock.cpp
- Timestamp:
- Mar 20, 2007, 4:57:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSLock.cpp
r20115 r20351 25 25 26 26 #include "collector.h" 27 #if USE(MULTIPLE_THREADS) 28 #include <pthread.h> 29 #endif 27 30 28 31 namespace KJS { … … 66 69 pthread_mutex_unlock(&JSMutex); 67 70 } 71 } 72 73 bool JSLock::currentThreadIsHoldingLock() 74 { 75 pthread_once(&createDidLockJSMutexOnce, createDidLockJSMutex); 76 return !!pthread_getspecific(didLockJSMutex); 68 77 } 69 78
Note:
See TracChangeset
for help on using the changeset viewer.