Changeset 79564 in webkit for trunk/Source/JavaScriptCore/runtime/JSLock.cpp
- Timestamp:
- Feb 24, 2011, 7:49:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSLock.cpp
r75443 r79564 25 25 #include "CallFrame.h" 26 26 27 #if ENABLE(JSC_MULTIPLE_THREADS)27 #if USE(PTHREADS) 28 28 #include <pthread.h> 29 29 #endif … … 31 31 namespace JSC { 32 32 33 #if ENABLE(JSC_MULTIPLE_THREADS) 33 // JSLock is only needed to support an obsolete execution model where JavaScriptCore 34 // automatically protected against concurrent access from multiple threads. 35 // So it's safe to disable it on non-mac platforms where we don't have native pthreads. 36 #if ENABLE(JSC_MULTIPLE_THREADS) && (OS(DARWIN) || USE(PTHREADS)) 34 37 35 38 // Acquire this mutex before accessing lock-related data. … … 209 212 } 210 213 211 #else 214 #else // ENABLE(JSC_MULTIPLE_THREADS) && (OS(DARWIN) || USE(PTHREADS)) 212 215 213 216 JSLock::JSLock(ExecState*) … … 256 259 } 257 260 258 #endif // USE(MULTIPLE_THREADS)261 #endif // ENABLE(JSC_MULTIPLE_THREADS) && (OS(DARWIN) || USE(PTHREADS)) 259 262 260 263 } // namespace JSC
Note:
See TracChangeset
for help on using the changeset viewer.