diff options
Diffstat (limited to 'sal/osl/w32/thread.cxx')
-rw-r--r-- | sal/osl/w32/thread.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sal/osl/w32/thread.cxx b/sal/osl/w32/thread.cxx index b9eccf3b8bab..19479de033cd 100644 --- a/sal/osl/w32/thread.cxx +++ b/sal/osl/w32/thread.cxx @@ -28,6 +28,8 @@ #include <rtl/tencinfo.h> #include <errno.h> +namespace { + /** Thread-data structure hidden behind oslThread: */ @@ -41,6 +43,8 @@ typedef struct } osl_TThreadImpl; +} + static unsigned __stdcall oslWorkerWrapperFunction(void* pData); static oslThread oslCreateThread(oslWorkerFunction pWorker, void* pThreadData, sal_uInt32 nFlags); @@ -378,6 +382,8 @@ void SAL_CALL osl_setThreadName(char const * name) { #endif } +namespace { + typedef struct TLS_ { DWORD dwIndex; @@ -385,6 +391,8 @@ typedef struct TLS_ struct TLS_ *pNext, *pPrev; } TLS, *PTLS; +} + static PTLS g_pThreadKeyList = nullptr; CRITICAL_SECTION g_ThreadKeyListCS; |