thread.cpp 448 Bytes
Newer Older
1
#include "pls/internal/base/thread.h"
2 3 4 5

namespace pls {
    namespace internal {
        namespace base {
6 7 8 9 10 11 12
#ifdef PLS_THREAD_SPECIFIC_PTHREAD
            pthread_key_t this_thread::local_storage_key_ = false;
            bool this_thread::local_storage_key_initialized_;
#endif
#ifdef PLS_THREAD_SPECIFIC_COMPILER
            __thread void* this_thread::local_state_;
#endif
13 14 15 16
            // implementation in header (C++ templating)
        }
    }
}