Changeset 194769 in webkit for trunk/Source/JavaScriptCore/llvm/InitializeLLVM.cpp
- Timestamp:
- Jan 8, 2016, 10:20:43 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/llvm/InitializeLLVM.cpp
r191058 r194769 31 31 #include "LLVMAPI.h" 32 32 #include "Options.h" 33 #include < pthread.h>33 #include <mutex> 34 34 #include <wtf/DataLog.h> 35 35 36 36 namespace JSC { 37 38 static pthread_once_t initializeLLVMOnceKey = PTHREAD_ONCE_INIT;39 37 40 38 static void initializeLLVMImpl() … … 68 66 bool initializeLLVM() 69 67 { 70 pthread_once(&initializeLLVMOnceKey, initializeLLVMImpl); 68 static std::once_flag initializeLLVMOnceKey; 69 70 std::call_once(initializeLLVMOnceKey, initializeLLVMImpl); 71 71 return !!llvm; 72 72 }
Note:
See TracChangeset
for help on using the changeset viewer.