Lines Matching refs:fThread
32 struct thread* GetThread() { return &fThread; }
33 virtual void Rescheduled() { fOnCPU[fThread.cpu->cpu_num]++; }
40 struct thread fThread;
70 thread_id fThread;
100 memset(&fThread, 0, sizeof(struct thread));
101 fThread.name = strdup(name);
102 fThread.id = sNextThreadID++;
103 fThread.priority = fThread.next_priority = priority;
104 fThread.state = fThread.next_state = B_THREAD_READY;
105 fThread.object = this;
106 fThread.last_time = system_time();
114 printf(" %p %10Ld %s, prio %ld, cpu:", &fThread, fThread.kernel_time,
115 fThread.name, fThread.priority);
121 free(fThread.name);
153 fThread = spawn_thread(&_Run, (BString("cpu ") << num).String(),
155 resume_thread(fThread);
170 wait_for_thread(fThread, &status);