/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/clearsilver/util/ |
ulocks.h | 130 NEOERR *cCreate(pthread_cond_t *cond); 133 * Description: Initializes the condition variable <cond>. 134 * Input: cond - condition variable to initialize. 138 * MT-Level: Safe for unique <cond>. 141 void cDestroy(pthread_cond_t *cond); 144 * Description: Destroys the condition variable <cond> that was 146 * Input: cond - condition variable to destroy. 149 * MT-Level: Safe for unique <cond>. 152 NEOERR *cWait(pthread_cond_t *cond, pthread_mutex_t *mutex); 155 * Description: Waits for a signal on condition variable <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...] |
/external/qemu/ |
qemu-thread.h | 11 pthread_cond_t cond; member in struct:QemuCond 28 void qemu_cond_init(QemuCond *cond); 29 void qemu_cond_signal(QemuCond *cond); 30 void qemu_cond_broadcast(QemuCond *cond); 31 void qemu_cond_wait(QemuCond *cond, QemuMutex *mutex); 32 int qemu_cond_timedwait(QemuCond *cond, QemuMutex *mutex, uint64_t msecs);
|
/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/JavaScriptCore/assembler/ |
MacroAssemblerX86Common.h | 438 Jump branchDouble(DoubleCondition cond, FPRegisterID left, FPRegisterID right) 442 if (cond & DoubleConditionBitInvert) 447 if (cond == DoubleEqual) { 452 } else if (cond == DoubleNotEqualOrUnordered) { 461 ASSERT(!(cond & DoubleConditionBitSpecial)); 462 return Jump(m_assembler.jCC(static_cast<X86Assembler::Condition>(cond & ~DoubleConditionBits))); 623 Jump branch32(Condition cond, RegisterID left, RegisterID right) 626 return Jump(m_assembler.jCC(x86Condition(cond))); 629 Jump branch32(Condition cond, RegisterID left, Imm32 right) 631 if (((cond == Equal) || (cond == NotEqual)) && !right.m_value [all...] |
MacroAssembler.h | 98 void branchPtr(Condition cond, RegisterID op1, ImmPtr imm, Label target) 100 branchPtr(cond, op1, imm).linkTo(target, this); 103 void branch32(Condition cond, RegisterID op1, RegisterID op2, Label target) 105 branch32(cond, op1, op2).linkTo(target, this); 108 void branch32(Condition cond, RegisterID op1, Imm32 imm, Label target) 110 branch32(cond, op1, imm).linkTo(target, this); 113 void branch32(Condition cond, RegisterID left, Address right, Label target) 115 branch32(cond, left, right).linkTo(target, this); 118 void branch16(Condition cond, BaseIndex left, RegisterID right, Label target) 120 branch16(cond, left, right).linkTo(target, this) [all...] |
/external/dbus/dbus/ |
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/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/qemu/distrib/sdl-1.2.12/src/joystick/dc/ |
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.ltrig!=prev_cond->ltrig [all...] |
/external/bluetooth/glib/tests/ |
errorcheck-mutex-test.c | 54 GCond* cond = g_cond_new (); local 55 g_cond_wait (cond, mutex); 62 GCond* cond = g_cond_new (); local 66 g_cond_wait (cond, mutex); 73 GCond* cond = g_cond_new (); local 74 g_cond_timed_wait (cond, mutex, NULL); 81 GCond* cond = g_cond_new (); local 85 g_cond_timed_wait (cond, mutex, NULL);
|
/build/tools/apriori/ |
debug.h | 10 #define FAILIF(cond, msg...) do { \ 11 if (unlikely(cond)) { \ 30 #define FAILIF(cond, msg...) do { \ 31 if (unlikely(cond)) { \ 42 #define FAILIF_LIBELF(cond, function) \ 43 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
|
/build/tools/iself/ |
debug.h | 12 #define FAILIF(cond, msg...) do { \ 13 if (unlikely(cond)) { \ 32 #define FAILIF(cond, msg...) do { \ 33 if (unlikely(cond)) { \ 44 #define FAILIF_LIBELF(cond, function) \ 45 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
|
/build/tools/isprelinked/ |
debug.h | 10 #define FAILIF(cond, msg...) do { \ 11 if (unlikely(cond)) { \ 30 #define FAILIF(cond, msg...) do { \ 31 if (unlikely(cond)) { \ 42 #define FAILIF_LIBELF(cond, function) \ 43 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
|
/build/tools/lsd/ |
debug.h | 10 #define FAILIF(cond, msg...) do { \ 11 if (unlikely(cond)) { \ 30 #define FAILIF(cond, msg...) do { \ 31 if (unlikely(cond)) { \ 42 #define FAILIF_LIBELF(cond, function) \ 43 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
|
/build/tools/soslim/ |
debug.h | 10 #define FAILIF(cond, msg...) do { \ 11 if (unlikely(cond)) { \ 30 #define FAILIF(cond, msg...) do { \ 31 if (unlikely(cond)) { \ 42 #define FAILIF_LIBELF(cond, function) \ 43 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
|
/development/tools/yuv420sp2rgb/ |
debug.h | 12 #define FAILIF(cond, msg...) do { \ 13 if (unlikely(cond)) { \ 32 #define FAILIF(cond, msg...) do { \ 33 if (unlikely(cond)) { \ 44 #define FAILIF_LIBELF(cond, function) \ 45 FAILIF(cond, "%s(): %s\n", #function, elf_errmsg(elf_errno()));
|