Lines Matching defs:thread

64  * Create and run a new thread.
171 pthread_t thread;
172 int result = pthread_create(&thread, &attr,
186 *threadId = (android_thread_id_t)thread; // XXX: this is not portable
192 static pthread_t android_thread_id_t_to_pthread(android_thread_id_t thread)
194 return (pthread_t) thread;
225 ALOG(LOG_VERBOSE, "thread", "thread exiting\n");
230 * Create and run a new thread.
252 ALOG(LOG_WARN, "thread", "WARNING: thread create failed\n");
435 ALOG(LOG_WARN, "thread", "WARNING: bad result from unlocking mutex\n");
444 ALOG(LOG_WARN, "thread", "WARNING: bad result from try-locking mutex\n");
487 // An auto-reset event used by the broadcast/signal thread to wait
488 // for all the waiting thread(s) to wake up and be released from
538 // If we're the last waiter thread during this particular broadcast
545 // any thread has a chance to run. Without it, another thread
614 * Signal the condition variable, allowing one thread to continue.
689 * This is our thread object!
718 // thread already started
751 // Do not refer to mStatus here: The thread is already running (may, in fact
753 // here merely indicates successfully starting the thread and does not
757 // Exiting scope of mLock is a memory barrier and allows new thread to run
785 // (unless, of course, the thread has already been asked to exit
790 // the thread and the thread would simply disappear after the
805 // clear thread ID so that requestExitAndWait() does not exit if
806 // called by a new thread using the same thread ID as this one.
815 // Release our strong reference, to let a chance to the thread
837 "Thread object's thread. It's a guaranteed deadlock!",
861 "Thread object's thread. It's a guaranteed deadlock!",