Changeset 1790 in webkit for trunk/JavaScriptCore/kjs/internal.cpp
- Timestamp:
- Aug 9, 2002, 5:04:39 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.cpp
r1789 r1790 794 794 // as a root set for garbage collection 795 795 #ifdef APPLE_CHANGES 796 pthread_mutex_lock(&interpreterLock);796 lockInterpreter(); 797 797 m_interpreter = interp; 798 798 #endif … … 808 808 } 809 809 #ifdef APPLE_CHANGES 810 pthread_mutex_unlock(&interpreterLock);810 unlockInterpreter(); 811 811 #endif 812 812 … … 955 955 // remove from global chain (see init()) 956 956 #ifdef APPLE_CHANGES 957 pthread_mutex_lock(&interpreterLock);957 lockInterpreter(); 958 958 #endif 959 959 next->prev = prev; … … 967 967 } 968 968 #ifdef APPLE_CHANGES 969 pthread_mutex_unlock(&interpreterLock);969 unlockInterpreter(); 970 970 #endif 971 971 } … … 1006 1006 { 1007 1007 #ifdef APPLE_CHANGES 1008 pthread_mutex_lock(&interpreterLock);1008 lockInterpreter(); 1009 1009 #endif 1010 1010 // prevent against infinite recursion … … 1012 1012 #ifdef APPLE_CHANGES 1013 1013 Completion result = Completion(Throw,Error::create(globExec,GeneralError,"Recursion too deep")); 1014 pthread_mutex_unlock(&interpreterLock);1014 unlockInterpreter(); 1015 1015 return result; 1016 1016 #else … … 1044 1044 err.put(globExec,"sid",Number(sid)); 1045 1045 #ifdef APPLE_CHANGES 1046 pthread_mutex_unlock(&interpreterLock);1046 unlockInterpreter(); 1047 1047 #endif 1048 1048 return Completion(Throw,err); … … 1089 1089 1090 1090 #ifdef APPLE_CHANGES 1091 pthread_mutex_unlock(&interpreterLock);1091 unlockInterpreter(); 1092 1092 #endif 1093 1093 return res;
Note:
See TracChangeset
for help on using the changeset viewer.