/external/qemu/distrib/sdl-1.2.12/src/thread/dc/ |
H A D | 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 63 SDL_DestroyCond(SDL_cond *cond) argument 80 SDL_CondSignal(SDL_cond *cond) argument 104 SDL_CondBroadcast(SDL_cond *cond) argument 157 SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms) argument 212 SDL_CondWait(SDL_cond *cond, SDL_mutex *mutex) argument [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/generic/ |
H A D | 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 63 SDL_DestroyCond(SDL_cond *cond) argument 80 SDL_CondSignal(SDL_cond *cond) argument 104 SDL_CondBroadcast(SDL_cond *cond) argument 157 SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms) argument 212 SDL_CondWait(SDL_cond *cond, SDL_mutex *mutex) argument [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/os2/ |
H A D | 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 63 SDL_DestroyCond(SDL_cond *cond) argument 80 SDL_CondSignal(SDL_cond *cond) argument 104 SDL_CondBroadcast(SDL_cond *cond) argument 157 SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms) argument 212 SDL_CondWait(SDL_cond *cond, SDL_mutex *mutex) argument [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/pthread/ |
H A D | 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) argument 63 SDL_CondSignal(SDL_cond *cond) argument 81 SDL_CondBroadcast(SDL_cond *cond) argument 98 SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms) argument 140 SDL_CondWait(SDL_cond *cond, SDL_mutex *mutex) argument [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/riscos/ |
H A D | 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) argument 67 SDL_CondSignal(SDL_cond *cond) argument 85 SDL_CondBroadcast(SDL_cond *cond) argument 102 SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms) argument 144 SDL_CondWait(SDL_cond *cond, SDL_mutex *mutex) argument [all...] |
/external/qemu/distrib/sdl-1.2.12/src/thread/pth/ |
H A D | 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) argument 61 if ( cond ) { 62 SDL_free(cond); 67 SDL_CondSignal(SDL_cond *cond) argument 85 SDL_CondBroadcast(SDL_cond *cond) argument 122 SDL_CondWaitTimeout(SDL_cond *cond, SDL_mutex *mutex, Uint32 ms) argument 149 SDL_CondWait(SDL_cond *cond, SDL_mutex *mutex) argument [all...] |
/external/valgrind/main/drd/ |
H A D | 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);
|
H A D | drd_cond.c | 62 void DRD_(cond_initialize)(struct cond_info* const p, const Addr cond) argument 64 tl_assert(cond != 0); 65 tl_assert(p->a1 == cond); 119 static struct cond_info* cond_get_or_allocate(const Addr cond) argument 123 tl_assert(offsetof(DrdClientobj, cond) == 0); 124 p = &(DRD_(clientobj_get)(cond, ClientCondvar)->cond); 128 if (DRD_(clientobj_present)(cond, cond + 1)) 130 wrong_type(cond); 139 cond_get(const Addr cond) argument 146 cond_pre_init(const Addr cond) argument 170 cond_post_destroy(const Addr cond) argument 208 cond_pre_wait(const Addr cond, const Addr mutex) argument 270 cond_post_wait(const Addr cond) argument 339 not_initialized(Addr const cond) argument 350 cond_pre_signal(Addr const cond) argument 374 cond_pre_broadcast(Addr const cond) argument [all...] |
/external/dbus/dbus/ |
H A D | 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) argument 137 DeleteCriticalSection (&cond->lock); 138 _dbus_list_clear (&cond 143 _dbus_condvar_wait_win32(DBusCondVar *cond, DBusMutex *mutex, int milliseconds) argument 202 _dbus_windows_condvar_wait(DBusCondVar *cond, DBusMutex *mutex) argument 209 _dbus_windows_condvar_wait_timeout(DBusCondVar *cond, DBusMutex *mutex, int timeout_milliseconds) argument 217 _dbus_windows_condvar_wake_one(DBusCondVar *cond) argument 228 _dbus_windows_condvar_wake_all(DBusCondVar *cond) argument [all...] |
H A D | 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/ |
H A D | p25.cpp | 13 Color foo(bool cond, ConvertsToColorA ca, ConvertsToColorB cb) { argument 14 return cond? ca : cb;
|
/external/qemu/ |
H A D | 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);
|
H A D | qemu-thread.c | 2 * Wrappers around mutex/cond/thread functions 93 void qemu_cond_init(QemuCond *cond) argument 97 err = pthread_cond_init(&cond->cond, NULL); 102 void qemu_cond_destroy(QemuCond *cond) argument 106 err = pthread_cond_destroy(&cond->cond); 111 void qemu_cond_signal(QemuCond *cond) argument 115 err = pthread_cond_signal(&cond->cond); 120 qemu_cond_broadcast(QemuCond *cond) argument 129 qemu_cond_wait(QemuCond *cond, QemuMutex *mutex) argument 138 qemu_cond_timedwait(QemuCond *cond, QemuMutex *mutex, uint64_t msecs) argument [all...] |
/external/apache-http/src/org/apache/http/impl/conn/tsccm/ |
H A D | 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) { argument 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 [all...] |
/external/clang/test/CXX/temp/temp.decls/temp.mem/ |
H A D | 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/webkit/Source/JavaScriptCore/assembler/ |
H A D | MacroAssembler.h | 108 void branchPtr(Condition cond, RegisterID op1, TrustedImmPtr imm, Label target) argument 110 branchPtr(cond, op1, imm).linkTo(target, this); 113 void branch32(Condition cond, RegisterID op1, RegisterID op2, Label target) argument 115 branch32(cond, op1, op2).linkTo(target, this); 118 void branch32(Condition cond, RegisterID op1, TrustedImm32 imm, Label target) argument 120 branch32(cond, op1, imm).linkTo(target, this); 123 void branch32(Condition cond, RegisterID left, Address right, Label target) argument 125 branch32(cond, left, right).linkTo(target, this); 128 void branch16(Condition cond, BaseIndex left, RegisterID right, Label target) argument 130 branch16(cond, lef 133 branchTestPtr(Condition cond, RegisterID reg, Label target) argument 239 setPtr(Condition cond, RegisterID left, TrustedImm32 right, RegisterID dest) argument 275 branchPtr(Condition cond, RegisterID left, RegisterID right) argument 280 branchPtr(Condition cond, RegisterID left, TrustedImmPtr right) argument 285 branchPtr(Condition cond, RegisterID left, Address right) argument 290 branchPtr(Condition cond, Address left, RegisterID right) argument 295 branchPtr(Condition cond, AbsoluteAddress left, RegisterID right) argument 300 branchPtr(Condition cond, Address left, TrustedImmPtr right) argument 305 branchPtr(Condition cond, AbsoluteAddress left, TrustedImmPtr right) argument 310 branchTestPtr(Condition cond, RegisterID reg, RegisterID mask) argument 315 branchTestPtr(Condition cond, RegisterID reg, TrustedImm32 mask = TrustedImm32(-1)) argument 320 branchTestPtr(Condition cond, Address address, TrustedImm32 mask = TrustedImm32(-1)) argument 325 branchTestPtr(Condition cond, BaseIndex address, TrustedImm32 mask = TrustedImm32(-1)) argument 331 branchAddPtr(Condition cond, RegisterID src, RegisterID dest) argument 336 branchSubPtr(Condition cond, TrustedImm32 imm, RegisterID dest) argument 341 branchTest8(Condition cond, ExtendedAddress address, TrustedImm32 mask = TrustedImm32(-1)) argument [all...] |
/external/clang/test/CodeGenCXX/ |
H A D | conditional-expr-lvalue.cpp | 17 void foo(bool cond, const A &a) { argument 18 (cond ? a : a.sub()).foo();
|
H A D | expr.cpp | 35 struct s5 &f5_0(bool cond, struct s5 &a, struct s5 &b) { argument 36 return cond ? a : b;
|
H A D | lambda-expressions.cpp | 49 int e(E a, E b, bool cond) { [a,b,cond](){ return (cond ? a : b).x; }(); }
|
/external/skia/tests/ |
H A D | Test.h | 45 void assertTrue(bool cond, const char desc[]) { argument 46 if (!cond) { 50 void assertFalse(bool cond, const char desc[]) { argument 51 if (cond) { 114 #define REPORTER_ASSERT(r, cond) \ 116 if (!(cond)) { \ 118 desc.printf("%s:%d: %s", __FILE__, __LINE__, #cond); \ 123 #define REPORTER_ASSERT_MESSAGE(r, cond, message) \ 125 if (!(cond)) { \ 127 desc.printf("%s %s:%d: %s", message, __FILE__, __LINE__, #cond); \ [all...] |
/external/qemu/android/utils/ |
H A D | 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), (voi [all...] |
/external/valgrind/unittest/ |
H A D | thread_wrappers_win.h | 100 void LockWhen(Condition cond) { Lock(); WaitLoop(cond); } argument 101 void ReaderLockWhen(Condition cond) { Lock(); WaitLoop(cond); } argument 102 void Await(Condition cond) { WaitLoop(cond); } argument 104 bool ReaderLockWhenWithTimeout(Condition cond, int millis) argument 105 { Lock(); return WaitLoopWithTimeout(cond, millis); } 106 bool LockWhenWithTimeout(Condition cond, int millis) argument 107 { Lock(); return WaitLoopWithTimeout(cond, milli 108 AwaitWithTimeout(Condition cond, int millis) argument 113 WaitLoop(Condition cond) argument 123 WaitLoopWithTimeout(Condition cond, int millis) argument [all...] |
/external/valgrind/main/VEX/priv/ |
H A D | guest_s390_helpers.c | 725 ULong cond, cc_op; local 737 cond = cond_expr->Iex.Const.con->Ico.U64; 740 vassert(cond <= 15); 745 | cond | 8 | 4 | 2 | 1 | 754 cc == 0 --> cc_dep1 == cc_dep2 (cond == 8) 755 cc == 1 --> cc_dep1 < cc_dep2 (cond == 4) 756 cc == 2 --> cc_dep1 > cc_dep2 (cond == 2) 758 Because cc == 3 cannot occur the rightmost bit of cond is 761 if (cond == 8 || cond [all...] |
/external/clang/test/CodeGen/ |
H A D | conditional.c | 3 float test1(int cond, float a, float b) { argument 4 return cond ? a : b; 7 double test2(int cond, float a, double b) { argument 8 return cond ? a : b;
|
/external/qemu/distrib/sdl-1.2.12/src/joystick/dc/ |
H A D | SDL_sysjoystick.c | 127 cont_cond_t cond,*prev_cond; local 131 if (cont_get_cond(addr,&cond)<0) return; 133 buttons = cond.buttons; 161 if (cond.joyx!=prev_cond->joyx) 162 SDL_PrivateJoystickAxis(joystick, 0, cond.joyx-128); 163 if (cond.joyy!=prev_cond->joyy) 164 SDL_PrivateJoystickAxis(joystick, 1, cond.joyy-128); 165 if (cond.rtrig!=prev_cond->rtrig) 166 SDL_PrivateJoystickAxis(joystick, 2, cond.rtrig); 167 if (cond [all...] |