Home | History | Annotate | Download | only in utils

Lines Matching defs:thread

48     // bye() is for the parent thread to go away. if joinable,
49 // parent must stop the spawned thread, join, and then
60 // once the thread is created, some of these values will
61 // be check in the spawned thread, and must set correctly
71 // set up thread name, if nothing is passed in
76 // create the thread here, then if successful
77 // and a name is given, we set the thread name
86 // set thread name
92 // set the thread name here
115 LocThreadDelegate* thread = NULL;
117 thread = new LocThreadDelegate(creator, threadName, runnable, joinable);
118 if (thread && !thread->isRunning()) {
119 thread->destroy();
120 thread = NULL;
124 return thread;
134 // mRunnable may get nulled on the spawned thread's way out;
137 // thread triggers stop, with either a stop()
138 // call or the client releases thread obj handle.
151 // when it is a detached thread, the client thread
152 // and the spawned thread can both try to destroy()
217 // true only if thread is created successfully
249 // test detached thread: valgrind ./a.out 0
250 // test joinable thread: valgrind ./a.out 1
254 LocThread thread;
255 thread.start("LocThreadTest", test, atoi(argv[1]));
259 thread.stop();