[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, 11 Jul 2012 11:45:58 +0000 (13:45 +0200)
commit60929e90ffa6993c271cfac9e285b1cca5a9f2cc
tree2f0f284b8e43dbe3b16ce18cc746763167102df4
parentd6a599dbc9d824a462b2b206316e102bf8136446
[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