Ignore:
Timestamp:
Jan 8, 2009, 8:47:14 AM (16 years ago)
Author:
[email protected]
Message:

2009-01-08 Jian Li <[email protected]>

Reviewed by Alexey Proskuryakov.

Add Win32 implementation of ThreadSpecific.
https://bugs.webkit.org/show_bug.cgi?id=22614

  • JavaScriptCore.vcproj/WTF/WTF.vcproj:
  • wtf/ThreadSpecific.h: (WTF::ThreadSpecific::ThreadSpecific): (WTF::ThreadSpecific::~ThreadSpecific): (WTF::ThreadSpecific::get): (WTF::ThreadSpecific::set): (WTF::ThreadSpecific::destroy):
  • wtf/ThreadSpecificWin.cpp: Added. (WTF::ThreadSpecificThreadExit):
  • wtf/ThreadingWin.cpp: (WTF::wtfThreadEntryPoint):
File:
1 edited

Legend:

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

    r39604 r39708  
    6565
    6666#include "MainThread.h"
     67#if !USE(PTHREADS) && PLATFORM(WIN_OS)
     68#include "ThreadSpecific.h"
     69#endif
    6770#include <process.h>
    6871#include <windows.h>
     
    175178
    176179    void* result = invocation.function(invocation.data);
     180
     181#if !USE(PTHREADS) && PLATFORM(WIN_OS)
     182    // Do the TLS cleanup.
     183    ThreadSpecificThreadExit();
     184#endif
    177185
    178186    return reinterpret_cast<unsigned>(result);
Note: See TracChangeset for help on using the changeset viewer.