[WIN] Remove dependency on pthread from MachineStackMarker
authorSimon Hausmann <simon.hausmann@nokia.com>
Wed, 20 Jun 2012 11:02:56 +0000 (13:02 +0200)
committerSimon Hausmann <simon.hausmann@nokia.com>
Wed, 20 Jun 2012 11:09:33 +0000 (13:09 +0200)
commit4eb70ff0a593cfe0f1768e4b8552b3e2fe4ef058
treecaebfec5a65d1ee9e4e126658fc2398a76524ade
parentfa25f595d2719ba992bb7224fa917936c319576a
[WIN] Remove dependency on pthread from MachineStackMarker
https://bugs.webkit.org/show_bug.cgi?id=68429

Patch by Patrick Gansterer <paroga@webkit.org> on 2012-06-13
Reviewed by NOBODY (OOPS!).

Implement pthread TLS functionality with native windows functions.

* heap/MachineStackMarker.cpp: Use the new functions instead of pthread directly.
* heap/MachineStackMarker.h:
* wtf/ThreadSpecific.h:
(WTF::ThreadSpecificKeyCreate): Added wrapper around pthread_key_create.
(WTF::ThreadSpecificKeyDelete): Added wrapper around pthread_key_delete.
(WTF::ThreadSpecificSet): Added wrapper around pthread_setspecific.
(WTF::ThreadSpecificGet): Added wrapper around pthread_getspecific.
* wtf/ThreadSpecificWin.cpp:
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/heap/MachineStackMarker.cpp
Source/JavaScriptCore/heap/MachineStackMarker.h
Source/WTF/wtf/ThreadSpecific.h
Source/WTF/wtf/ThreadSpecificWin.cpp