Changeset 31690 in webkit for trunk/JavaScriptCore/wtf/ThreadingGtk.cpp
- Timestamp:
- Apr 7, 2008, 2:04:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/ThreadingGtk.cpp
r31560 r31690 40 40 Mutex* atomicallyInitializedStaticMutex; 41 41 42 static ThreadIdentifier mainThreadIdentifier; 43 42 44 void initializeThreading() 43 45 { … … 47 49 atomicallyInitializedStaticMutex = new Mutex; 48 50 wtf_random_init(); 51 mainThreadIdentifier = currentThread(); 49 52 } 50 53 ASSERT(g_thread_supported()); … … 137 140 return id; 138 141 return establishIdentifierForThread(currentThread); 142 } 143 144 bool isMainThread() 145 { 146 return currentThread() == mainThreadIdentifier; 139 147 } 140 148
Note:
See TracChangeset
for help on using the changeset viewer.