Lines Matching refs:Thread
81 // 0 is never a valid thread id on Solaris since the main thread is 1 and
377 class Thread::PlatformData : public Malloced {
381 pthread_t thread_; // Thread handle for pthread.
384 Thread::Thread(Isolate* isolate, const Options& options)
392 Thread::Thread(Isolate* isolate, const char* name)
400 Thread::~Thread() {
406 Thread* thread = reinterpret_cast<Thread*>(arg);
408 // don't know which thread will run first (the original thread or the new
410 thread->data()->thread_ = pthread_self();
411 ASSERT(thread->data()->thread_ != kNoThread);
412 Thread::SetThreadLocal(Isolate::isolate_key(), thread->isolate());
413 thread->Run();
418 void Thread::set_name(const char* name) {
424 void Thread::Start() {
437 void Thread::Join() {
442 Thread::LocalStorageKey Thread::CreateThreadLocalKey() {
451 void Thread::DeleteThreadLocalKey(LocalStorageKey key) {
459 void* Thread::GetThreadLocal(LocalStorageKey key) {
465 void Thread::SetThreadLocal(LocalStorageKey key, void* value) {
471 void Thread::YieldCPU() {
726 // Start a thread that sends SIGPROF signal to VM thread.