Lines Matching refs:Thread
61 // 0 is never a valid thread id on OpenBSD since tids and pids share a
362 class Thread::PlatformData : public Malloced {
366 pthread_t thread_; // Thread handle for pthread.
370 Thread::Thread(Isolate* isolate, const Options& options)
378 Thread::Thread(Isolate* isolate, const char* name)
386 Thread::~Thread() {
392 Thread* thread = reinterpret_cast<Thread*>(arg);
394 // don't know which thread will run first (the original thread or the new
396 thread->data()->thread_ = pthread_self();
397 ASSERT(thread->data()->thread_ != kNoThread);
398 Thread::SetThreadLocal(Isolate::isolate_key(), thread->isolate());
399 thread->Run();
404 void Thread::set_name(const char* name) {
410 void Thread::Start() {
423 void Thread::Join() {
428 Thread::LocalStorageKey Thread::CreateThreadLocalKey() {
437 void Thread::DeleteThreadLocalKey(LocalStorageKey key) {
445 void* Thread::GetThreadLocal(LocalStorageKey key) {
451 void Thread::SetThreadLocal(LocalStorageKey key, void* value) {
457 void Thread::YieldCPU() {