mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 821358 - Port the trace-malloc Windows TLS macros to DMD; r=njn
This commit is contained in:
parent
53230f5ec7
commit
1f48f84d13
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user