Bug 821358 - Port the trace-malloc Windows TLS macros to DMD; r=njn

This commit is contained in:
Ehsan Akhgari 2012-12-13 19:47:41 -05:00
parent f0cab2c607
commit 0a84fb2ffa

View File

@ -404,7 +404,13 @@ public:
#ifdef XP_WIN
#error "Windows not supported yet, sorry."
#define DMD_TLS_INDEX_TYPE DWORD
#define DMD_CREATE_TLS_INDEX(i_) PR_BEGIN_MACRO \
(i_) = TlsAlloc(); \
PR_END_MACRO
#define DMD_DESTROY_TLS_INDEX(i_) TlsFree((i_))
#define DMD_GET_TLS_DATA(i_) TlsGetValue((i_))
#define DMD_SET_TLS_DATA(i_, v_) TlsSetValue((i_), (v_))
#else