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

namespace pls {
4 5 6
namespace internal {
namespace base {

7
#ifdef PLS_THREAD_SPECIFIC_PTHREAD
8 9
pthread_key_t this_thread::local_storage_key_ = false;
bool this_thread::local_storage_key_initialized_;
10 11
#endif
#ifdef PLS_THREAD_SPECIFIC_COMPILER
12
__thread void *this_thread::local_state_;
13
#endif
14 15 16 17

void thread::join() {
  pthread_join(pthread_thread_, nullptr);
}
18 19 20

}
}
21
}