Lines Matching refs:thread
20 CliCommand("stop a thread",
21 "%s [ <thread ID> ]\n"
22 "Stops the thread specified by <thread ID>, if supplied. Otherwise "
24 "the current thread.")
40 Thread* thread = NULL;
42 thread = context.CurrentThread();
43 if (thread == NULL) {
44 printf("Error: No current thread.\n");
56 // get the thread and change the current thread
58 thread = team->ThreadByID(threadID);
59 if (thread == NULL) {
60 printf("Error: No thread with ID %ld\n", threadID);
65 if (thread->State() == THREAD_STATE_STOPPED) {
66 printf("Error: thread %" B_PRId32 " is already stopped.\n",
67 thread->ID());
71 context.GetUserInterfaceListener()->ThreadActionRequested(thread->ID(),