Changeset 37364 in webkit for trunk/JavaScriptCore/wtf/ThreadingWin.cpp
- Timestamp:
- Oct 6, 2008, 6:21:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/ThreadingWin.cpp
r35420 r37364 70 70 #include <wtf/MathExtras.h> 71 71 72 #if PLATFORM(WIN) 72 #if PLATFORM(WIN) && USE(PTHREADS) 73 73 // Currently, Apple's Windows port uses a mixture of native and pthreads functions in FastMalloc. 74 74 // To ensure that thread-specific data is properly destroyed, we need to end each thread with pthread_exit(). … … 169 169 void* result = invocation.function(invocation.data); 170 170 171 #if PLATFORM(WIN) 171 #if PLATFORM(WIN) && USE(PTHREADS) 172 172 // pthreads-win32 knows how to work with threads created with Win32 or CRT functions, so it's OK to mix APIs. 173 173 pthread_exit(result); … … 430 430 unsigned signals = 0; 431 431 432 WORD res = ::WaitForSingleObject(m_condition.m_mutex, INFINITE);432 DWORD res = ::WaitForSingleObject(m_condition.m_mutex, INFINITE); 433 433 ASSERT(res == WAIT_OBJECT_0); 434 434
Note:
See TracChangeset
for help on using the changeset viewer.