[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, 16 Jul 2012 12:51:45 +0000 (14:51 +0200)
commitdf5ddc896980b193e6c1d2c3c148c65eabd94ca7
tree93d0aec2f768abfc867a59d31deeb17003dd1438
parent4e6b3a206fa4ad8bb0b664f7674c9a70376d6e26
[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