[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>
Mon, 25 Jun 2012 11:36:27 +0000 (13:36 +0200)
commitc3974482a84bb8477175a82e37df0f9998242497
tree7303929c0721e133c9241a266f28296c5d7886d5
parent79ad030d505ccf79cf10aa9f8189ca3e2f61f6f4
[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