Searched refs:cond (Results 1 - 25 of 290) sorted by relevance

1234567891011>>

/external/qemu/distrib/sdl-1.2.15/src/thread/dc/
H A DSDL_syscond.c44 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.15/src/thread/generic/
H A DSDL_syscond.c44 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.15/src/thread/os2/
H A DSDL_syscond.c44 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.15/src/thread/pthread/
H A DSDL_syscond.c34 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.15/src/thread/riscos/
H A DSDL_syscond.c38 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.15/src/thread/pth/
H A DSDL_syscond.c43 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 Ddrd_cond.h49 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 Ddrd_cond.c62 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 Ddbus-sysdeps-thread-win.c34 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 Ddbus-threads-internal.h40 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 Dp25.cpp13 Color foo(bool cond, ConvertsToColorA ca, ConvertsToColorB cb) { argument
14 return cond? ca : cb;
/external/qemu/
H A Dqemu-thread.h11 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 Dqemu-thread.c2 * 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 DWaitingThread.java53 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 Dp1.cpp4 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 DMacroAssembler.h108 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...]
H A DMacroAssemblerX86Common.h604 Jump branchDouble(DoubleCondition cond, FPRegisterID left, FPRegisterID right) argument
608 if (cond & DoubleConditionBitInvert)
613 if (cond == DoubleEqual) {
618 } else if (cond == DoubleNotEqualOrUnordered) {
627 ASSERT(!(cond & DoubleConditionBitSpecial));
628 return Jump(m_assembler.jCC(static_cast<X86Assembler::Condition>(cond & ~DoubleConditionBits)));
797 Jump branch8(Condition cond, Address left, TrustedImm32 right) argument
800 return Jump(m_assembler.jCC(x86Condition(cond)));
803 Jump branch32(Condition cond, RegisterID left, RegisterID right) argument
806 return Jump(m_assembler.jCC(x86Condition(cond)));
809 branch32(Condition cond, RegisterID left, TrustedImm32 right) argument
818 branch32(Condition cond, RegisterID left, Address right) argument
824 branch32(Condition cond, Address left, RegisterID right) argument
830 branch32(Condition cond, Address left, TrustedImm32 right) argument
836 branch32(Condition cond, BaseIndex left, TrustedImm32 right) argument
842 branch32WithUnalignedHalfWords(Condition cond, BaseIndex left, TrustedImm32 right) argument
847 branch16(Condition cond, BaseIndex left, RegisterID right) argument
853 branch16(Condition cond, BaseIndex left, TrustedImm32 right) argument
861 branchTest32(Condition cond, RegisterID reg, RegisterID mask) argument
868 branchTest32(Condition cond, RegisterID reg, TrustedImm32 mask = TrustedImm32(-1)) argument
881 branchTest32(Condition cond, Address address, TrustedImm32 mask = TrustedImm32(-1)) argument
891 branchTest32(Condition cond, BaseIndex address, TrustedImm32 mask = TrustedImm32(-1)) argument
901 branchTest8(Condition cond, RegisterID reg, TrustedImm32 mask = TrustedImm32(-1)) argument
913 branchTest8(Condition cond, Address address, TrustedImm32 mask = TrustedImm32(-1)) argument
925 branchTest8(Condition cond, BaseIndex address, TrustedImm32 mask = TrustedImm32(-1)) argument
964 branchAdd32(Condition cond, RegisterID src, RegisterID dest) argument
971 branchAdd32(Condition cond, TrustedImm32 imm, RegisterID dest) argument
978 branchAdd32(Condition cond, TrustedImm32 src, Address dest) argument
985 branchAdd32(Condition cond, RegisterID src, Address dest) argument
992 branchAdd32(Condition cond, Address src, RegisterID dest) argument
999 branchAdd32(Condition cond, RegisterID src1, RegisterID src2, RegisterID dest) argument
1007 branchAdd32(Condition cond, RegisterID src, TrustedImm32 imm, RegisterID dest) argument
1013 branchMul32(Condition cond, RegisterID src, RegisterID dest) argument
1020 branchMul32(Condition cond, Address src, RegisterID dest) argument
1027 branchMul32(Condition cond, TrustedImm32 imm, RegisterID src, RegisterID dest) argument
1034 branchMul32(Condition cond, RegisterID src1, RegisterID src2, RegisterID dest) argument
1042 branchSub32(Condition cond, RegisterID src, RegisterID dest) argument
1049 branchSub32(Condition cond, TrustedImm32 imm, RegisterID dest) argument
1056 branchSub32(Condition cond, TrustedImm32 imm, Address dest) argument
1063 branchSub32(Condition cond, RegisterID src, Address dest) argument
1070 branchSub32(Condition cond, Address src, RegisterID dest) argument
1077 branchSub32(Condition cond, RegisterID src1, RegisterID src2, RegisterID dest) argument
1086 branchSub32(Condition cond, RegisterID src1, TrustedImm32 src2, RegisterID dest) argument
1092 branchNeg32(Condition cond, RegisterID srcDest) argument
1099 branchOr32(Condition cond, RegisterID src, RegisterID dest) argument
1134 set8Compare32(Condition cond, RegisterID left, RegisterID right, RegisterID dest) argument
1140 set8Compare32(Condition cond, Address left, RegisterID right, RegisterID dest) argument
1146 set8Compare32(Condition cond, RegisterID left, TrustedImm32 right, RegisterID dest) argument
1155 set32Compare32(Condition cond, RegisterID left, RegisterID right, RegisterID dest) argument
1162 set32Compare32(Condition cond, RegisterID left, TrustedImm32 right, RegisterID dest) argument
1177 set32Test8(Condition cond, Address address, TrustedImm32 mask, RegisterID dest) argument
1187 set32Test32(Condition cond, Address address, TrustedImm32 mask, RegisterID dest) argument
1198 x86Condition(Condition cond) argument
[all...]
/external/clang/test/CodeGenCXX/
H A Dconditional-expr-lvalue.cpp17 void foo(bool cond, const A &a) { argument
18 (cond ? a : a.sub()).foo();
H A Dexpr.cpp35 struct s5 &f5_0(bool cond, struct s5 &a, struct s5 &b) { argument
36 return cond ? a : b;
/external/skia/tests/
H A DTest.h45 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 Dassert.h46 /* 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 Dthread_wrappers_win.h100 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 Dguest_s390_helpers.c725 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 Dconditional.c3 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.15/src/joystick/dc/
H A DSDL_sysjoystick.c127 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...]

Completed in 356 milliseconds

1234567891011>>