Ignore:
Timestamp:
Jul 29, 2008, 9:23:08 AM (17 years ago)
Author:
Adam Roben
Message:

Windows build fix

  • wtf/ThreadingWin.cpp: (WTF::setThreadName): Move a misplaced assertion to here... (WTF::createThread): ...from here.
File:
1 edited

Legend:

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

    r35419 r35420  
    9292static void setThreadName(DWORD dwThreadID, LPCSTR szThreadName)
    9393{
     94    // Visual Studio has a 31-character limit on thread names. Longer names will
     95    // be truncated silently, but we'd like callers to know about the limit.
     96    ASSERT_ARG(szThreadName, strlen(szThreadName) <= 31);
     97
    9498    THREADNAME_INFO info;
    9599    info.dwType = 0x1000;
     
    175179ThreadIdentifier createThread(ThreadFunction entryPoint, void* data, const char* threadName)
    176180{
    177     // Visual Studio has a 31-character limit on thread names. Longer names will
    178     // be truncated silently, but we'd like callers to know about the limit.
    179     ASSERT_ARG(szThreadName, strlen(szThreadName) <= 31);
    180 
    181181    unsigned threadIdentifier = 0;
    182182    ThreadIdentifier threadID = 0;
Note: See TracChangeset for help on using the changeset viewer.