[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:02:56 +0000 (13:02 +0200)
commitd0b6f995ba664e00da722232b71de8a0dca6e625
treec2c3d1571df8cf5b2538f78ba1a547bc0a7b1c9c
parent49233e234e5c787396cadb2cea33b31ae0cd65c1
[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