Changeset 58179 in webkit for trunk/JavaScriptCore/wtf/gtk/ThreadingGtk.cpp
- Timestamp:
- Apr 23, 2010, 11:59:56 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/gtk/ThreadingGtk.cpp
r53714 r58179 45 45 static Mutex* atomicallyInitializedStaticMutex; 46 46 47 static ThreadIdentifier mainThreadIdentifier;48 49 47 static Mutex& threadMapMutex() 50 48 { … … 63 61 threadMapMutex(); 64 62 initializeRandomNumberGenerator(); 65 mainThreadIdentifier = currentThread();66 63 initializeMainThread(); 67 64 } … … 167 164 return id; 168 165 return establishIdentifierForThread(currentThread); 169 }170 171 bool isMainThread()172 {173 return currentThread() == mainThreadIdentifier;174 166 } 175 167
Note:
See TracChangeset
for help on using the changeset viewer.