Changeset 41605 in webkit for trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
- Timestamp:
- Mar 11, 2009, 6:26:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/ThreadingPthreads.cpp
r40811 r41605 1 1 /* 2 * Copyright (C) 2007 Apple Inc. All rights reserved.2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. 3 3 * Copyright (C) 2007 Justin Haygood ([email protected]) 4 4 * … … 27 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 28 */ 29 29 30 #include "config.h" 30 31 #include "Threading.h" 31 32 #include "StdLibExtras.h"33 32 34 33 #if USE(PTHREADS) … … 38 37 #include "MainThread.h" 39 38 #include "RandomNumberSeed.h" 40 39 #include "StdLibExtras.h" 40 #include "UnusedParam.h" 41 41 #include <errno.h> 42 42 #include <limits.h> … … 134 134 { 135 135 pthread_t threadHandle; 136 if (pthread_create(&threadHandle, NULL, entryPoint, data)) {136 if (pthread_create(&threadHandle, 0, entryPoint, data)) { 137 137 LOG_ERROR("Failed to create pthread at entry point %p with data %p", entryPoint, data); 138 138 return 0; … … 140 140 141 141 return establishIdentifierForPthreadHandle(threadHandle); 142 } 143 144 void setThreadNameInternal(const char* threadName) 145 { 146 #if PLATFORM(DARWIN) && !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) 147 pthread_setname_np(threadName); 148 #else 149 UNUSED_PARAM(threadName); 150 #endif 142 151 } 143 152
Note:
See TracChangeset
for help on using the changeset viewer.