Searched defs:wait (Results 1 - 5 of 5) sorted by relevance

/system/extras/tests/bionic/libc/bionic/
H A Dtest_cond.c37 static pthread_cond_t wait = PTHREAD_COND_INITIALIZER; variable
44 pthread_cond_wait(&wait, &lock);
58 pthread_cond_signal(&wait);
/system/core/toolbox/
H A Dalarm.c23 int wait = 0; local
51 wait = 1;
150 if(wait) {
152 printf("wait for alarm %x\n", waitalarmmask);
155 fprintf(stderr, "alarm wait failed\n");
/system/core/include/utils/
H A DCondition.h40 * call wait(), then either re-wait() if things aren't quite what you want,
41 * or unlock the mutex and continue. All threads calling wait() must
60 status_t wait(Mutex& mutex);
105 inline status_t Condition::wait(Mutex& mutex) { function in class:android::Condition
/system/core/libsync/tests/
H A Dsync_test.cpp171 int wait(int timeout = -1) { function in class:__anon219::SyncFence
253 ASSERT_EQ(fence.wait(0), -1);
260 ASSERT_EQ(fence.wait(0), -1);
267 ASSERT_EQ(fence.wait(0), 0);
269 // Go even futher, and confirm wait still succeeds.
271 ASSERT_EQ(fence.wait(0), 0);
285 // Poll the fence, and wait till timeout.
358 // Spawn a thread to wait on a fence when the timeline is killed.
363 ASSERT_EQ(fenceKill.wait(-1), -1);
369 fenceSig.wait();
[all...]
/system/core/init/
H A Dbuiltins.c32 #include <sys/wait.h>
384 int wait = 0; local
395 if (!strcmp(args[n], "wait"))
396 wait = 1;
415 if (wait)
463 if (wait)
513 * process if anything goes wrong (crash or memory leak), and wait for

Completed in 163 milliseconds