Changeset 4087 in webkit for trunk/JavaScriptCore/kjs/internal.cpp
- Timestamp:
- Apr 13, 2003, 12:31:44 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.cpp
r3745 r4087 73 73 static pthread_once_t interpreterLockOnce = PTHREAD_ONCE_INIT; 74 74 static pthread_mutex_t interpreterLock; 75 static int interpreterLockCount = 0; 75 76 76 77 static void initializeInterpreterLock() … … 88 89 pthread_once(&interpreterLockOnce, initializeInterpreterLock); 89 90 pthread_mutex_lock(&interpreterLock); 91 interpreterLockCount++; 90 92 } 91 93 92 94 static inline void unlockInterpreter() 93 95 { 96 interpreterLockCount--; 94 97 pthread_mutex_unlock(&interpreterLock); 95 98 } … … 531 534 { 532 535 lockInterpreter(); 536 } 537 538 int InterpreterImp::lockCount() 539 { 540 return interpreterLockCount; 533 541 } 534 542
Note:
See TracChangeset
for help on using the changeset viewer.