Ignore:
Timestamp:
Oct 6, 2008, 6:21:50 PM (17 years ago)
Author:
[email protected]
Message:

2008-10-06 Tony Chang <[email protected]>

Reviewed by Alexey Proskuryakov.

Chromium doesn't use pthreads on windows, so make its use conditional.

Also convert a WORD to a DWORD to avoid a compiler warning. This
matches the other methods around it.

  • wtf/ThreadingWin.cpp: (WTF::wtfThreadEntryPoint): (WTF::ThreadCondition::broadcast):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/ThreadingWin.cpp

    r35420 r37364  
    7070#include <wtf/MathExtras.h>
    7171
    72 #if PLATFORM(WIN)
     72#if PLATFORM(WIN) && USE(PTHREADS)
    7373// Currently, Apple's Windows port uses a mixture of native and pthreads functions in FastMalloc.
    7474// To ensure that thread-specific data is properly destroyed, we need to end each thread with pthread_exit().
     
    169169    void* result = invocation.function(invocation.data);
    170170
    171 #if PLATFORM(WIN)
     171#if PLATFORM(WIN) && USE(PTHREADS)
    172172    // pthreads-win32 knows how to work with threads created with Win32 or CRT functions, so it's OK to mix APIs.
    173173    pthread_exit(result);
     
    430430    unsigned signals = 0;
    431431
    432     WORD res = ::WaitForSingleObject(m_condition.m_mutex, INFINITE);
     432    DWORD res = ::WaitForSingleObject(m_condition.m_mutex, INFINITE);
    433433    ASSERT(res == WAIT_OBJECT_0);
    434434
Note: See TracChangeset for help on using the changeset viewer.