Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 25 of 96) sorted by relevance

1234

/AliOS-Things-master/components/SDL2/src/thread/generic/
A DSDL_syscond.c47 if (cond) { in SDL_CreateCond()
51 cond->waiting = cond->signals = 0; in SDL_CreateCond()
52 if (!cond->lock || !cond->wait_sem || !cond->wait_done) { in SDL_CreateCond()
66 if (cond) { in SDL_DestroyCond()
84 if (!cond) { in SDL_CondSignal()
92 if (cond->waiting > cond->signals) { in SDL_CondSignal()
108 if (!cond) { in SDL_CondBroadcast()
116 if (cond->waiting > cond->signals) { in SDL_CondBroadcast()
119 num_waiting = (cond->waiting - cond->signals); in SDL_CondBroadcast()
120 cond->signals = cond->waiting; in SDL_CondBroadcast()
[all …]
/AliOS-Things-master/components/SDL2/src/thread/psp/
A DSDL_syscond.c49 if (cond) { in SDL_CreateCond()
53 cond->waiting = cond->signals = 0; in SDL_CreateCond()
54 if (!cond->lock || !cond->wait_sem || !cond->wait_done) { in SDL_CreateCond()
68 if (cond) { in SDL_DestroyCond()
86 if (!cond) { in SDL_CondSignal()
94 if (cond->waiting > cond->signals) { in SDL_CondSignal()
110 if (!cond) { in SDL_CondBroadcast()
118 if (cond->waiting > cond->signals) { in SDL_CondBroadcast()
121 num_waiting = (cond->waiting - cond->signals); in SDL_CondBroadcast()
122 cond->signals = cond->waiting; in SDL_CondBroadcast()
[all …]
/AliOS-Things-master/components/posix/src/
A Dpthread_cond.c18 if (cond == NULL) { in pthread_cond_init()
41 cond->waiting = cond->signals = 0; in pthread_cond_init()
53 if (cond == NULL) { in pthread_cond_destroy()
69 if (cond == NULL) in pthread_cond_broadcast()
80 if (cond->waiting > cond->signals) { in pthread_cond_broadcast()
81 num_waiting = (cond->waiting - cond->signals); in pthread_cond_broadcast()
82 cond->signals = cond->waiting; in pthread_cond_broadcast()
103 if (cond == NULL) in pthread_cond_signal()
113 if ( cond->waiting > cond->signals ) { in pthread_cond_signal()
141 (cond->waiting)++; in pthread_cond_timedwait_ms()
[all …]
/AliOS-Things-master/components/SDL2/src/thread/pthread/
A DSDL_syscond.c44 if (cond) { in SDL_CreateCond()
45 if (pthread_cond_init(&cond->cond, NULL) != 0) { in SDL_CreateCond()
51 return (cond); in SDL_CreateCond()
58 if (cond) { in SDL_DestroyCond()
59 pthread_cond_destroy(&cond->cond); in SDL_DestroyCond()
70 if (!cond) { in SDL_CondSignal()
75 if (pthread_cond_signal(&cond->cond) != 0) { in SDL_CondSignal()
87 if (!cond) { in SDL_CondBroadcast()
92 if (pthread_cond_broadcast(&cond->cond) != 0) { in SDL_CondBroadcast()
107 if (!cond) { in SDL_CondWaitTimeout()
[all …]
/AliOS-Things-master/components/SDL2/src/thread/stdcpp/
A DSDL_syscond.cpp47 return cond; in SDL_CreateCond()
60 SDL_DestroyCond(SDL_cond * cond) in SDL_DestroyCond() argument
62 if (cond) { in SDL_DestroyCond()
63 delete cond; in SDL_DestroyCond()
70 SDL_CondSignal(SDL_cond * cond) in SDL_CondSignal() argument
72 if (!cond) { in SDL_CondSignal()
77 cond->cpp_cond.notify_one(); in SDL_CondSignal()
86 if (!cond) { in SDL_CondBroadcast()
91 cond->cpp_cond.notify_all(); in SDL_CondBroadcast()
120 if (!cond) { in SDL_CondWaitTimeout()
[all …]
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Dplatform_util.h54 #define MBEDTLS_PARAM_FAILED( cond ) \
55 mbedtls_param_failed( #cond, __FILE__, __LINE__ )
78 #define MBEDTLS_INTERNAL_VALIDATE_RET( cond, ret ) \ argument
80 if( !(cond) ) \
82 MBEDTLS_PARAM_FAILED( cond ); \
88 #define MBEDTLS_INTERNAL_VALIDATE( cond ) \ argument
90 if( !(cond) ) \
92 MBEDTLS_PARAM_FAILED( cond ); \
100 #define MBEDTLS_INTERNAL_VALIDATE_RET( cond, ret ) do { } while( 0 )
101 #define MBEDTLS_INTERNAL_VALIDATE( cond ) do { } while( 0 )
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/ble_stack/ble_ip/
A Darch.h191 #define ASSERT_ERR(cond) { if (!(cond)) { TRACE("line is %d file is %s"… argument
194 #define ASSERT_INFO(cond, param0, param1) { if (!(cond)) { TRACE("line is %d file is %s"… argument
197 #define ASSERT_WARN(cond, param0, param1) { if (!(cond)) { TRACE("line is %d file is %s"… argument
204 #define ASSERT_ERR(cond) argument
207 #define ASSERT_INFO(cond, param0, param1) argument
210 #define ASSERT_WARN(cond, param0, param1) argument
/AliOS-Things-master/components/ble_host/bt_host/include/common/
A Dlog.h62 #define BT_ASSERT(cond) if (!(cond)) { \ argument
63 BT_ERR("assert: '" #cond "' failed"); \
66 #define BT_ASSERT_MSG(cond, fmt, ...) if (!(cond)) { \ argument
68 BT_ERR("assert: '" #cond "' failed"); \
/AliOS-Things-master/components/SDL2/src/video/arm/
A Dpixman-arm-simd-asm.S74 .macro FillRect_process_tail cond, numbytes, firstreg
79 pixst cond, numbytes, 4, DST
437 .macro BGR888toRGB888_1pixel cond, reg, tmp
438 uxtb16&cond tmp, WK&reg, ror #8
439 uxtb16&cond WK&reg, WK&reg, ror #16
440 orr&cond WK&reg, WK&reg, tmp, lsl #8
444 uxtb16&cond tmp1, WK&reg1, ror #8
445 uxtb16&cond WK&reg1, WK&reg1, ror #16
446 uxtb16&cond tmp2, WK&reg2, ror #8
447 uxtb16&cond WK&reg2, WK&reg2, ror #16
[all …]
A Dpixman-arm-simd-asm.h111 op&r&cond WK&reg0, [base], #4
112 op&r&cond WK&reg1, [base], #4
113 op&r&cond WK&reg2, [base], #4
114 op&r&cond WK&reg3, [base], #4
120 op&r&cond WK&reg0, [base], #4
121 op&r&cond WK&reg1, [base], #4
126 op&r&cond WK&reg0, [base], #4
128 op&r&cond&h WK&reg0, [base], #2
328 .ifc cond,mi
331 .ifc cond,cs
[all …]
/AliOS-Things-master/components/SDL2/include/
A DSDL_mutex.h202 extern DECLSPEC void SDLCALL SDL_DestroyCond(SDL_cond * cond);
209 extern DECLSPEC int SDLCALL SDL_CondSignal(SDL_cond * cond);
216 extern DECLSPEC int SDLCALL SDL_CondBroadcast(SDL_cond * cond);
227 extern DECLSPEC int SDLCALL SDL_CondWait(SDL_cond * cond, SDL_mutex * mutex);
237 extern DECLSPEC int SDLCALL SDL_CondWaitTimeout(SDL_cond * cond,
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/
A Dnet_debug.h16 #define NET_ASSERT(cond, ...) {ASSERT(cond, "net assert")} argument
78 #define BUG_ON(cond) ASSERT(!(cond), "ASSERT:%s line:%d", __func__, __LINE__) argument
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/
A Dhal_trace.h121 #define ASSERT(cond, str, ...) { if (!(cond)) { hal_trace_assert_dump(__FILE__, __FUNCTION__, … argument
125 #define ASSERT(cond, str, ...) { if (!(cond)) { hal_trace_assert_dump(__FILE__, __LINE__, str,… argument
129 #define ASSERT(cond, str, ...) { if (!(cond)) { hal_trace_assert_dump(__FUNCTION__, __LINE__, … argument
133 #define ASSERT(cond, str, ...) { if (!(cond)) { hal_trace_assert_dump(str, ##__VA_ARGS__); } } argument
137 #define ASSERT(cond, str, ...) { if (!(cond)) { hal_trace_dummy(str, ##__VA_ARGS__); hal_trace… argument
157 #define ASSERT_NODUMP(cond) { if (!(cond)) { SAFE_PROGRAM_STOP(); } } argument
/AliOS-Things-master/components/py_engine/engine/py/
A Dasmthumb.c282 #define OP_BCC_N(cond, byte_offset) (0xd000 | ((cond) << 8) | (((byte_offset) >> 1) & 0x00ff)) argument
285 #define OP_BCC_W_HI(cond, byte_offset) (0xf000 | ((cond) << 6) | (((byte_offset) >> 10) & 0x0400) |… argument
288 bool asm_thumb_bcc_nw_label(asm_thumb_t *as, int cond, uint label, bool wide) { in asm_thumb_bcc_nw_label() argument
293 asm_thumb_op16(as, OP_BCC_N(cond, rel)); in asm_thumb_bcc_nw_label()
297 asm_thumb_op32(as, OP_BCC_W_HI(cond, rel), OP_BCC_W_LO(rel)); in asm_thumb_bcc_nw_label()
527 void asm_thumb_bcc_label(asm_thumb_t *as, int cond, uint label) { in asm_thumb_bcc_label() argument
535 asm_thumb_op16(as, OP_BCC_N(cond, rel)); in asm_thumb_bcc_label()
543 asm_thumb_op32(as, OP_BCC_W_HI(cond, rel), OP_BCC_W_LO(rel)); in asm_thumb_bcc_label()
546 asm_thumb_op16(as, OP_BCC_N(cond ^ 1, 0)); in asm_thumb_bcc_label()
552 void asm_thumb_bcc_rel9(asm_thumb_t *as, int cond, int rel) { in asm_thumb_bcc_rel9() argument
[all …]
A Dasmxtensa.c149 void asm_xtensa_bccz_reg_label(asm_xtensa_t *as, uint cond, uint reg, uint label) { in asm_xtensa_bccz_reg_label() argument
155 asm_xtensa_op_bccz(as, cond, reg, rel); in asm_xtensa_bccz_reg_label()
158 void asm_xtensa_bcc_reg_reg_label(asm_xtensa_t *as, uint cond, uint reg1, uint reg2, uint label) { in asm_xtensa_bcc_reg_reg_label() argument
164 asm_xtensa_op_bcc(as, cond, reg1, reg2, rel); in asm_xtensa_bcc_reg_reg_label()
168 void asm_xtensa_setcc_reg_reg_reg(asm_xtensa_t *as, uint cond, uint reg_dest, uint reg_src1, uint r… in asm_xtensa_setcc_reg_reg_reg() argument
170 asm_xtensa_op_bcc(as, cond, reg_src1, reg_src2, 1); in asm_xtensa_setcc_reg_reg_reg()
/AliOS-Things-master/components/posix/include/
A Dpthread.h166 int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr);
167 int pthread_cond_destroy(pthread_cond_t *cond);
168 int pthread_cond_broadcast(pthread_cond_t *cond);
169 int pthread_cond_signal(pthread_cond_t *cond);
170 int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex);
171 int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abs…
/AliOS-Things-master/hardware/chip/haas1000/drivers/thirdparty/bluetooth/bt_host/bt_common/include/common/
A Dlog.h85 #define BT_ASSERT(cond) if (!(cond)) { \ argument
86 BT_ERR("assert: '" #cond "' failed"); \
/AliOS-Things-master/components/ble_host/script/Kconfiglib-10.21.0/
A Dkconfiglib.py1020 if expr_value(cond):
3853 if expr_value(cond):
4458 if expr_value(cond):
5128 res |= expr_items(cond)
5132 res |= expr_items(cond)
5136 res |= expr_items(cond)
5141 res |= expr_items(cond)
5286 cond)
5290 cond)
6053 if cond == "y":
[all …]
/AliOS-Things-master/components/ble_mesh/script/Kconfiglib-10.21.0/
A Dkconfiglib.py1020 if expr_value(cond):
3853 if expr_value(cond):
4458 if expr_value(cond):
5128 res |= expr_items(cond)
5132 res |= expr_items(cond)
5136 res |= expr_items(cond)
5141 res |= expr_items(cond)
5286 cond)
5290 cond)
6053 if cond == "y":
[all …]
/AliOS-Things-master/components/drivers/core/base/include/drivers/
A Dddkc_log.h33 #define ddkc_assert(cond, str, ...) \ argument
34 …do { if (!(cond)) { printf("[ASSERT] %s/" str, __FUNCTION__, __VA_ARGS__); while (1); } } while (0)
/AliOS-Things-master/components/SDL2/src/core/alios/
A DSDL_evdev.c67 SDL_cond *cond; member
163 SDL_CondSignal(_this->cond); in uinput_callback()
178 _this->cond = SDL_CreateCond(); in SDL_EVDEV_Init()
200 if (_this->cond != NULL) in SDL_EVDEV_Quit()
201 SDL_DestroyCond(_this->cond); in SDL_EVDEV_Quit()
244 SDL_CondWait(_this->cond, _this->mutex); in SDL_EVDEV_Poll()
/AliOS-Things-master/components/mbedtls/library/
A Dchacha20.c57 #define CHACHA20_VALIDATE_RET( cond ) \ argument
58 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA )
59 #define CHACHA20_VALIDATE( cond ) \ argument
60 MBEDTLS_INTERNAL_VALIDATE( cond )
522 #define ASSERT( cond, args ) \ argument
525 if( ! ( cond ) ) \
A Dchachapoly.c48 #define CHACHAPOLY_VALIDATE_RET( cond ) \ argument
49 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA )
50 #define CHACHAPOLY_VALIDATE( cond ) \ argument
51 MBEDTLS_INTERNAL_VALIDATE( cond )
478 #define ASSERT( cond, args ) \ argument
481 if( ! ( cond ) ) \
/AliOS-Things-master/hardware/chip/rtl872xd/test/cutest/
A Dcut.h182 #define ASSERT_TRUE(cond) \ argument
184 if (!(cond)) \
207 #define ASSERT_FALSE(cond) ASSERT_TRUE(!(cond)) argument
/AliOS-Things-master/components/mbedtls/platform/yoc/
A Daes_alt.c25 #define AES_VALIDATE_RET( cond ) \ argument
26 MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_AES_BAD_INPUT_DATA )
27 #define AES_VALIDATE( cond ) \ argument
28 MBEDTLS_INTERNAL_VALIDATE( cond )

Completed in 59 milliseconds

1234