Changeset 60486 in webkit for trunk/JavaScriptCore/wtf/gtk/ThreadingGtk.cpp
- Timestamp:
- Jun 1, 2010, 10:26:55 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/gtk/ThreadingGtk.cpp
r58266 r60486 37 37 #include "MainThread.h" 38 38 #include "RandomNumberSeed.h" 39 #include <wtf/StdLibExtras.h> 39 40 40 41 #include <glib.h> … … 43 44 namespace WTF { 44 45 46 typedef HashMap<ThreadIdentifier, GThread*> ThreadMap; 47 45 48 static Mutex* atomicallyInitializedStaticMutex; 46 49 47 50 static Mutex& threadMapMutex() 48 51 { 49 static Mutex mutex;52 DEFINE_STATIC_LOCAL(Mutex, mutex, ()); 50 53 return mutex; 51 54 } … … 75 78 } 76 79 77 static HashMap<ThreadIdentifier, GThread*>& threadMap()78 { 79 static HashMap<ThreadIdentifier, GThread*> map;80 static ThreadMap& threadMap() 81 { 82 DEFINE_STATIC_LOCAL(ThreadMap, map, ()); 80 83 return map; 81 84 } … … 85 88 MutexLocker locker(threadMapMutex()); 86 89 87 HashMap<ThreadIdentifier, GThread*>::iterator i = threadMap().begin();90 ThreadMap::iterator i = threadMap().begin(); 88 91 for (; i != threadMap().end(); ++i) { 89 92 if (i->second == thread)
Note:
See TracChangeset
for help on using the changeset viewer.