/bionic/libc/private/isc/ |
assertions.h | 69 #define REQUIRE(cond) \ 70 ((void) ((cond) || \ 72 #cond, 0), 0))) 73 #define REQUIRE_ERR(cond) \ 74 ((void) ((cond) || \ 76 #cond, 1), 0))) 78 #define REQUIRE(cond) ((void) (cond)) 79 #define REQUIRE_ERR(cond) ((void) (cond)) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/dc/ |
SDL_syscond.c | 44 SDL_cond *cond; local 46 cond = (SDL_cond *) SDL_malloc(sizeof(SDL_cond)); 47 if ( cond ) { 48 cond->lock = SDL_CreateMutex(); 49 cond->wait_sem = SDL_CreateSemaphore(0); 50 cond->wait_done = SDL_CreateSemaphore(0); 51 cond->waiting = cond->signals = 0; 52 if ( ! cond->lock || ! cond->wait_sem || ! cond->wait_done ) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/generic/ |
SDL_syscond.c | 44 SDL_cond *cond; local 46 cond = (SDL_cond *) SDL_malloc(sizeof(SDL_cond)); 47 if ( cond ) { 48 cond->lock = SDL_CreateMutex(); 49 cond->wait_sem = SDL_CreateSemaphore(0); 50 cond->wait_done = SDL_CreateSemaphore(0); 51 cond->waiting = cond->signals = 0; 52 if ( ! cond->lock || ! cond->wait_sem || ! cond->wait_done ) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/os2/ |
SDL_syscond.c | 44 SDL_cond *cond; local 46 cond = (SDL_cond *) SDL_malloc(sizeof(SDL_cond)); 47 if ( cond ) { 48 cond->lock = SDL_CreateMutex(); 49 cond->wait_sem = SDL_CreateSemaphore(0); 50 cond->wait_done = SDL_CreateSemaphore(0); 51 cond->waiting = cond->signals = 0; 52 if ( ! cond->lock || ! cond->wait_sem || ! cond->wait_done ) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/pthread/ |
SDL_syscond.c | 34 pthread_cond_t cond; member in struct:SDL_cond 40 SDL_cond *cond; local 42 cond = (SDL_cond *) SDL_malloc(sizeof(SDL_cond)); 43 if ( cond ) { 44 if ( pthread_cond_init(&cond->cond, NULL) < 0 ) { 46 SDL_free(cond); 47 cond = NULL; 50 return(cond); 54 void SDL_DestroyCond(SDL_cond *cond) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/riscos/ |
SDL_syscond.c | 38 pthread_cond_t cond; member in struct:SDL_cond 44 SDL_cond *cond; local 46 cond = (SDL_cond *) SDL_malloc(sizeof(SDL_cond)); 47 if ( cond ) { 48 if ( pthread_cond_init(&cond->cond, NULL) < 0 ) { 50 SDL_free(cond); 51 cond = NULL; 54 return(cond); 58 void SDL_DestroyCond(SDL_cond *cond) [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/pth/ |
SDL_syscond.c | 43 SDL_cond *cond; local 45 cond = (SDL_cond *) SDL_malloc(sizeof(SDL_cond)); 46 if ( cond ) { 47 if ( pth_cond_init(&(cond->condpth_p)) < 0 ) { 49 SDL_free(cond); 50 cond = NULL; 55 return(cond); 59 void SDL_DestroyCond(SDL_cond *cond) 61 if ( cond ) { 62 SDL_free(cond); [all...] |
/bionic/libc/netbsd/resolv/ |
res_debug.h | 24 # define Dprint(cond, args) /*empty*/ 25 # define DprintQ(cond, args, query, size) /*empty*/ 29 # define Dprint(cond, args) if (cond) {fprintf args;} else {} 30 # define DprintQ(cond, args, query, size) if (cond) {\
|
/external/valgrind/main/drd/ |
drd_cond.h | 49 struct cond_info* DRD_(cond_get)(const Addr cond); 50 void DRD_(cond_pre_init)(const Addr cond); 51 void DRD_(cond_post_destroy)(const Addr cond); 52 void DRD_(cond_pre_wait)(const Addr cond, const Addr mutex); 53 void DRD_(cond_post_wait)(const Addr cond); 54 void DRD_(cond_pre_signal)(const Addr cond); 55 void DRD_(cond_pre_broadcast)(const Addr cond);
|
drd_cond.c | 68 void DRD_(cond_initialize)(struct cond_info* const p, const Addr cond) 70 tl_assert(cond != 0); 71 tl_assert(p->a1 == cond); 125 static struct cond_info* cond_get_or_allocate(const Addr cond) 129 tl_assert(offsetof(DrdClientobj, cond) == 0); 130 p = &(DRD_(clientobj_get)(cond, ClientCondvar)->cond); 134 if (DRD_(clientobj_present)(cond, cond + 1)) 136 wrong_type(cond); [all...] |
/external/dbus/dbus/ |
dbus-sysdeps-thread-win.c | 34 DBusList *list; /**< list thread-local-stored events waiting on the cond variable */ 122 DBusCondVar *cond; local 124 cond = dbus_new (DBusCondVar, 1); 125 if (cond == NULL) 128 cond->list = NULL; 130 InitializeCriticalSection (&cond->lock); 131 return (DBusCondVar *) cond; 135 _dbus_windows_condvar_free (DBusCondVar *cond) 137 DeleteCriticalSection (&cond->lock); 138 _dbus_list_clear (&cond->list) [all...] |
dbus-threads-internal.h | 40 void _dbus_condvar_free (DBusCondVar *cond); 41 void _dbus_condvar_wait (DBusCondVar *cond, 43 dbus_bool_t _dbus_condvar_wait_timeout (DBusCondVar *cond, 46 void _dbus_condvar_wake_one (DBusCondVar *cond); 47 void _dbus_condvar_wake_all (DBusCondVar *cond);
|
/external/clang/test/CXX/over/over.built/ |
p25.cpp | 13 Color foo(bool cond, ConvertsToColorA ca, ConvertsToColorB cb) { 14 return cond? ca : cb;
|
/external/qemu/ |
qemu-thread.h | 11 pthread_cond_t cond; member in struct:QemuCond 29 void qemu_cond_init(QemuCond *cond); 30 void qemu_cond_destroy(QemuCond *cond); 31 void qemu_cond_signal(QemuCond *cond); 32 void qemu_cond_broadcast(QemuCond *cond); 33 void qemu_cond_wait(QemuCond *cond, QemuMutex *mutex); 34 int qemu_cond_timedwait(QemuCond *cond, QemuMutex *mutex, uint64_t msecs);
|
qemu-thread.c | 2 * Wrappers around mutex/cond/thread functions 93 void qemu_cond_init(QemuCond *cond) 97 err = pthread_cond_init(&cond->cond, NULL); 102 void qemu_cond_destroy(QemuCond *cond) 106 err = pthread_cond_destroy(&cond->cond); 111 void qemu_cond_signal(QemuCond *cond) 115 err = pthread_cond_signal(&cond->cond); [all...] |
/external/apache-http/src/org/apache/http/impl/conn/tsccm/ |
WaitingThread.java | 53 private final Condition cond; field in class:WaitingThread 69 * @param cond the condition for which to wait 73 public WaitingThread(Condition cond, RouteSpecificPool pool) { 75 if (cond == null) { 79 this.cond = cond; 91 return this.cond; 141 // the lock would not be released on calling cond.await() below. 157 success = this.cond.awaitUntil(deadline); 159 this.cond.await() [all...] |
/bootable/recovery/minzip/ |
Log.h | 56 #define CONDITION(cond) (__builtin_expect((cond)!=0, 0)) 60 #define LOGV_IF(cond, ...) ((void)0) 62 #define LOGV_IF(cond, ...) \ 63 ( (CONDITION(cond)) \ 80 #define LOGD_IF(cond, ...) \ 81 ( (CONDITION(cond)) \ 94 #define LOGI_IF(cond, ...) \ 95 ( (CONDITION(cond)) \ 108 #define LOGW_IF(cond, ...) [all...] |
/system/core/include/cutils/ |
log.h | 84 #define CONDITION(cond) (__builtin_expect((cond)!=0, 0)) 88 #define LOGV_IF(cond, ...) ((void)0) 90 #define LOGV_IF(cond, ...) \ 91 ( (CONDITION(cond)) \ 105 #define LOGD_IF(cond, ...) \ 106 ( (CONDITION(cond)) \ 119 #define LOGI_IF(cond, ...) \ 120 ( (CONDITION(cond)) \ 133 #define LOGW_IF(cond, ...) [all...] |
/external/webkit/Source/JavaScriptCore/assembler/ |
MacroAssembler.h | 108 void branchPtr(Condition cond, RegisterID op1, TrustedImmPtr imm, Label target) 110 branchPtr(cond, op1, imm).linkTo(target, this); 113 void branch32(Condition cond, RegisterID op1, RegisterID op2, Label target) 115 branch32(cond, op1, op2).linkTo(target, this); 118 void branch32(Condition cond, RegisterID op1, TrustedImm32 imm, Label target) 120 branch32(cond, op1, imm).linkTo(target, this); 123 void branch32(Condition cond, RegisterID left, Address right, Label target) 125 branch32(cond, left, right).linkTo(target, this); 128 void branch16(Condition cond, BaseIndex left, RegisterID right, Label target) 130 branch16(cond, left, right).linkTo(target, this) [all...] |
/external/clang/test/CodeGenCXX/ |
conditional-expr-lvalue.cpp | 17 void foo(bool cond, const A &a) { 18 (cond ? a : a.sub()).foo();
|
expr.cpp | 35 struct s5 &f5_0(bool cond, struct s5 &a, struct s5 &b) { 36 return cond ? a : b;
|
/external/v8/src/mips/ |
codegen-mips-inl.h | 49 void DeferredCode::Branch(Condition cond) { 50 __ Branch(&entry_label_, cond, zero_reg, Operand(0));
|
/external/skia/tests/ |
Test.h | 35 void assertTrue(bool cond, const char desc[]) { 36 if (!cond) { 40 void assertFalse(bool cond, const char desc[]) { 41 if (cond) { 93 #define REPORTER_ASSERT(r, cond) \ 95 if (!(cond)) { \ 97 desc.printf("%s:%d: %s", __FILE__, __LINE__, #cond); \
|
/external/clang/test/CXX/temp/temp.decls/temp.mem/ |
p1.cpp | 4 static T cond; member in struct:A 8 return (cond ? value + value : value); 14 A<bool>::cond = true; member in class:A
|
/external/qemu/android/utils/ |
assert.h | 46 /* Check that 'cond' is true, and report an assertion failure otherwise */ 47 #define _ANDROID_ASSERT(cond,...) \ 49 if (!(cond)) { \ 55 /* Check that 'cond' is boolean true (i.e. not 0), and report an assertion 125 # define AASSERT(cond,...) _ANDROID_ASSERT(cond,__VA_ARGS__) 151 # define AASSERT(cond,...) ((void)(cond), (void)0) 152 # define AASSERT_BOOL(cond,val) ((void)(cond), (void)0 [all...] |