-private:
- void set(T* new_value) {
-#ifdef _WIN32
- TlsSetValue(dwTlsIndex, new_value);
-#else
- pthread_setspecific(key, new_value);
-#endif
- }
- };
-
-
- /**
- * Same interface as std::thread
- */
- class thread {
- public:
-#ifdef _WIN32
- typedef HANDLE native_handle_type;
-#else
- typedef pthread_t native_handle_type;
-#endif
-