Changeset 37630 in webkit for trunk/JavaScriptCore/kjs/StructureID.cpp
- Timestamp:
- Oct 15, 2008, 11:41:08 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/StructureID.cpp
r37629 r37630 34 34 #include <wtf/RefPtr.h> 35 35 36 #if ENABLE(JSC_MULTIPLE_THREADS) 37 #include <wtf/Threading.h> 38 #endif 39 36 40 using namespace std; 37 41 … … 40 44 #ifndef NDEBUG 41 45 static WTF::RefCountedLeakCounter structureIDCounter("StructureID"); 46 47 #if ENABLE(JSC_MULTIPLE_THREADS) 48 static Mutex ignoreSetMutex; 49 #endif 42 50 43 51 static bool shouldIgnoreLeaks; … … 83 91 84 92 #ifndef NDEBUG 93 #if ENABLE(JSC_MULTIPLE_THREADS) 94 MutexLocker protect(ignoreSetMutex); 95 #endif 85 96 if (shouldIgnoreLeaks) 86 97 ignoreSet.add(this); … … 116 127 117 128 #ifndef NDEBUG 129 #if ENABLE(JSC_MULTIPLE_THREADS) 130 MutexLocker protect(ignoreSetMutex); 131 #endif 118 132 HashSet<StructureID*>::iterator it = ignoreSet.find(this); 119 133 if (it != ignoreSet.end())
Note:
See TracChangeset
for help on using the changeset viewer.