Home
last modified time | relevance | path

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

1234

/foundation/multimodalinput/input/util/common/include/
Ddefine_multimodal.h38 #define CHKPL(cond, ...) \ argument
40 if ((cond) == nullptr) { \
42 __FILE__, __LINE__, #cond); \
46 #define CHKPV(cond) \ argument
48 if ((cond) == nullptr) { \
50 __FILE__, __LINE__, #cond); \
55 #define CHKPF(cond) \ argument
57 if ((cond) == nullptr) { \
59 __FILE__, __LINE__, #cond); \
64 #define CHKPS(cond) \ argument
[all …]
/foundation/multimedia/av_session/utils/include/
Davsession_log.h46 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ argument
48 if (!(cond)) { \
54 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ argument
56 if (!(cond)) { \
62 #define CHECK_AND_BREAK_LOG(cond, fmt, ...) \ argument
64 if (!(cond)) { \
70 #define CHECK_AND_CONTINUE_LOG(cond, fmt, ...) \ argument
72 if (!(cond)) { \
78 #define CHECK_AND_PRINT_LOG(cond, fmt, ...) \ argument
80 if (!(cond)) { \
[all …]
/foundation/resourceschedule/ffrt/src/sync/
Dcondition_variable.cpp31 int ffrt_cond_init(ffrt_cond_t* cond, const ffrt_condattr_t* attr) in ffrt_cond_init() argument
33 if (!cond) { in ffrt_cond_init()
40 new (cond) ffrt::condition_variable_private(); in ffrt_cond_init()
45 int ffrt_cond_signal(ffrt_cond_t* cond) in ffrt_cond_signal() argument
47 if (!cond) { in ffrt_cond_signal()
51 auto p = (ffrt::condition_variable_private*)cond; in ffrt_cond_signal()
57 int ffrt_cond_broadcast(ffrt_cond_t* cond) in ffrt_cond_broadcast() argument
59 if (!cond) { in ffrt_cond_broadcast()
63 auto p = (ffrt::condition_variable_private*)cond; in ffrt_cond_broadcast()
69 int ffrt_cond_wait(ffrt_cond_t* cond, ffrt_mutex_t* mutex) in ffrt_cond_wait() argument
[all …]
/foundation/multimedia/player_framework/services/utils/include/
Dmedia_log.h66 #define CHECK_AND_RETURN(cond) \ argument
68 if (!(cond)) { \
69 MEDIA_LOGE("%{public}s, check failed!", #cond); \
74 #define CHECK_AND_RETURN_RET(cond, ret) \ argument
76 if (!(cond)) { \
77 MEDIA_LOGE("%{public}s, check failed! ret = %{public}s", #cond, #ret); \
82 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ argument
84 if (!(cond)) { \
90 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ argument
92 if (!(cond)) { \
[all …]
/foundation/communication/dsoftbus/core/common/include/
Dsoftbus_log.h131 #define CHECK_AND_RETURN_RET_LOG(cond, ret, log, fmt, ...) \ argument
133 if (!(cond)) { \
139 #define CHECK_AND_RETURN_LOG(cond, log, fmt, ...) \ argument
141 if (!(cond)) { \
147 #define DISC_CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ argument
148 CHECK_AND_RETURN_RET_LOG(cond, ret, DLOGE, fmt, ##__VA_ARGS__)
149 #define DISC_CHECK_AND_RETURN_LOG(cond, fmt, ...) \ argument
150 CHECK_AND_RETURN_LOG(cond, DLOGE, fmt, ##__VA_ARGS__)
152 #define CONN_CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ argument
153 CHECK_AND_RETURN_RET_LOG(cond, ret, CLOGE, fmt, ##__VA_ARGS__)
[all …]
/foundation/multimedia/av_codec/test/nativedemo/include/
Ddemo_log.h23 #define DEMO_CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) … argument
25 …if (!(cond)) { …
33 #define DEMO_CHECK_AND_RETURN_LOG(cond, fmt, ...) … argument
35 …if (!(cond)) { …
43 #define DEMO_CHECK_AND_BREAK_LOG(cond, fmt, ...) … argument
44 …if (!(cond)) { …
51 #define DEMO_CHECK_AND_CONTINUE_LOG(cond, fmt, ...) … argument
52 …if (!(cond)) { …
/foundation/multimedia/player_framework/test/unittest/common/include/
Dunittest_log.h26 #define UNITTEST_CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ argument
28 if (!(cond)) { \
34 #define UNITTEST_CHECK_AND_RETURN_LOG(cond, fmt, ...) \ argument
36 if (!(cond)) { \
42 #define UNITTEST_CHECK_AND_BREAK_LOG(cond, fmt, ...) \ argument
43 if (!(cond)) { \
48 #define UNITTEST_CHECK_AND_CONTINUE_LOG(cond, fmt, ...) \ argument
49 if (!(cond)) { \
/foundation/graphic/surface_lite/interfaces/innerkits/
Dbuffer_common.h22 #define RETURN_VAL_IF_FAIL(cond, val) { \ argument
23 if (!(cond)) { \
24 GRAPHIC_LOGD("'%s' failed.", #cond); \
29 #define RETURN_IF_FAIL(cond) { \ argument
30 if (!(cond)) { \
31 GRAPHIC_LOGD("'%s' failed.", #cond); \
/foundation/communication/bluetooth/frameworks/js/napi/include/
Dnapi_bluetooth_error.h29 #define NAPI_BT_ASSERT_RETURN(env, cond, errCode, retObj) \ argument
31 if (!(cond)) { \
40 #define NAPI_BT_ASSERT_RETURN(env, cond, errCode, retObj) \
42 if (!(cond)) { \
50 #define NAPI_BT_ASSERT_RETURN_UNDEF(env, cond, errCode) \ argument
54 NAPI_BT_ASSERT_RETURN((env), (cond), (errCode), res); \
57 #define NAPI_BT_ASSERT_RETURN_FALSE(env, cond, errCode) \ argument
61 NAPI_BT_ASSERT_RETURN((env), (cond), (errCode), res); \
/foundation/communication/wifi/wifi/frameworks/js/napi/inc/
Dwifi_napi_errcode.h43 #define WIFI_NAPI_ASSERT(env, cond, errCode, sysCap) \ argument
45 if (!(cond)) { \
55 #define WIFI_NAPI_RETURN(env, cond, errCode, sysCap) \ argument
58 if (!(cond)) { \
69 #define WIFI_NAPI_ASSERT(env, cond, errCode, sysCap) \ argument
71 if (!(cond)) { \
73 napi_get_boolean(env, cond, &res); \
80 #define WIFI_NAPI_RETURN(env, cond, errCode, sysCap) \ argument
83 napi_get_boolean(env, cond, &res); \
/foundation/resourceschedule/ffrt/interfaces/kits/c/
Dcondition_variable.h53 FFRT_C_API int ffrt_cond_init(ffrt_cond_t* cond, const ffrt_condattr_t* attr);
65 FFRT_C_API int ffrt_cond_signal(ffrt_cond_t* cond);
77 FFRT_C_API int ffrt_cond_broadcast(ffrt_cond_t* cond);
90 FFRT_C_API int ffrt_cond_wait(ffrt_cond_t* cond, ffrt_mutex_t* mutex);
106 FFRT_C_API int ffrt_cond_timedwait(ffrt_cond_t* cond, ffrt_mutex_t* mutex, const struct timespec* t…
117 FFRT_C_API int ffrt_cond_destroy(ffrt_cond_t* cond);
/foundation/multimedia/av_codec/test/unittest/common/
Dunittest_log.h28 #define UNITTEST_CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) … argument
30 …if (!(cond)) { …
39 #define UNITTEST_CHECK_AND_RETURN_LOG(cond, fmt, ...) … argument
41 …if (!(cond)) { …
50 #define UNITTEST_CHECK_AND_BREAK_LOG(cond, fmt, ...) … argument
51 …if (!(cond)) { …
59 #define UNITTEST_CHECK_AND_CONTINUE_LOG(cond, fmt, ...) … argument
60 …if (!(cond)) { …
/foundation/multimedia/media_library/interfaces/inner_api/media_library_helper/include/
Dmedia_log.h46 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ argument
48 if (!(cond)) { \
54 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ argument
56 if (!(cond)) { \
62 #define CHECK_AND_PRINT_LOG(cond, fmt, ...) \ argument
64 if (!(cond)) { \
69 #define CHECK_AND_RETURN_RET(cond, ret) \ argument
71 if (!(cond)) { \
/foundation/multimedia/media_lite/services/player_lite/impl/player_control/player/fsm/src/
Dfsm_common.h53 #define FSM_COND_WAIT(cond, mutex) \ argument
55 (void)pthread_cond_wait(&(cond), &(mutex)); \
58 #define FSM_COND_SIGNAL(cond) \ argument
60 (void)pthread_cond_signal(&(cond)); \
65 void FsmCondInitRelative(pthread_cond_t &cond);
67 int32_t FsmCondTimewait(pthread_cond_t &cond, pthread_mutex_t &mutex, uint32_t delayUs);
Dfsm_common.cpp38 void FsmCondInitRelative(pthread_cond_t &cond) in FsmCondInitRelative() argument
45 (void)pthread_cond_init(&cond, &condAttr); in FsmCondInitRelative()
47 (void)pthread_cond_init(&cond, nullptr); in FsmCondInitRelative()
51 int32_t FsmCondTimewait(pthread_cond_t &cond, pthread_mutex_t &mutex, uint32_t delayUs) in FsmCondTimewait() argument
75 return pthread_cond_timedwait(&cond, &mutex, &ts); in FsmCondTimewait()
/foundation/multimedia/av_codec/services/dfx/include/
Davcodec_log.h50 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ argument
52 if (!(cond)) { \
58 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ argument
60 if (!(cond)) { \
66 #define CHECK_AND_BREAK_LOG(cond, fmt, ...) \ argument
68 if (!(cond)) { \
74 #define CHECK_AND_CONTINUE_LOG(cond, fmt, ...) \ argument
76 if (!(cond)) { \
/foundation/multimedia/player_framework/test/fuzztest/common/
Daw_common.h24 #define CHECK_INSTANCE_AND_RETURN_RET(cond, ret, ...) \ argument
26 if (cond == nullptr) { \
27 cout << cond << "is nullptr" << endl; \
32 #define CHECK_BOOL_AND_RETURN_RET(cond, ret, ...) \ argument
34 if (!(cond)) { \
39 #define CHECK_STATE_AND_RETURN_RET(cond, ret, ...) \ argument
41 if (cond != 0) { \
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
Dsoftbus_adapter_thread.c381 int32_t SoftBusCondInit(SoftBusCond *cond) in SoftBusCondInit() argument
383 if (cond == NULL) { in SoftBusCondInit()
412 *cond = (SoftBusCond)tempCond; in SoftBusCondInit()
416 int32_t SoftBusCondSignal(SoftBusCond *cond) in SoftBusCondSignal() argument
418 if ((cond == NULL) || ((void *)(*cond) == NULL)) { in SoftBusCondSignal()
424 ret = pthread_cond_signal((pthread_cond_t *)*cond); in SoftBusCondSignal()
433 int32_t SoftBusCondBroadcast(SoftBusCond *cond) in SoftBusCondBroadcast() argument
435 if ((cond == NULL) || ((void *)(*cond) == NULL)) { in SoftBusCondBroadcast()
441 ret = pthread_cond_broadcast((pthread_cond_t *)*cond); in SoftBusCondBroadcast()
450 int32_t SoftBusCondWait(SoftBusCond *cond, SoftBusMutex *mutex, SoftBusSysTime *time) in SoftBusCondWait() argument
[all …]
/foundation/resourceschedule/work_scheduler/utils/native/include/
Dwork_sched_common.h28 #define RETURN_IF_WITH_RET(cond, retval) if (cond) {return (retval);} argument
29 #define RETURN_IF(cond) if (cond) {return;} argument
31 #define RETURN_IF_WITH_LOG(cond, loginfo) \ argument
33 if (cond) { \
/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include/
Daudio_log.h54 #define CHECK_AND_RETURN_RET_LOG(cond, ret, fmt, ...) \ argument
56 if (!(cond)) { \
62 #define CHECK_AND_RETURN_LOG(cond, fmt, ...) \ argument
64 if (!(cond)) { \
70 #define CHECK_AND_BREAK_LOG(cond, fmt, ...) \ argument
72 if (!(cond)) { \
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/
Devent.c25 pthread_cond_t cond; member
35 pthread_cond_init(&event->cond, 0); in EventCreate()
48 while (EBUSY == pthread_cond_destroy(&event->cond)) { in EventDelete()
66 pthread_cond_broadcast(&event->cond); in EventSet()
76 pthread_cond_broadcast(&event->cond); in EventClear()
84 ret = pthread_cond_wait(&event->cond, &event->mutex); in EventWaitInternal()
91 ret = pthread_cond_timedwait(&event->cond, &event->mutex, &timeout); in EventWaitInternal()
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
Dgraphic_assert.h46 #define ASSERT(cond) assert(cond) argument
48 #define ASSERT(cond)
/foundation/communication/dsoftbus/adapter/common/include/
Dsoftbus_adapter_thread.h84 int32_t SoftBusCondInit(SoftBusCond *cond);
85 int32_t SoftBusCondSignal(SoftBusCond *cond);
86 int32_t SoftBusCondBroadcast(SoftBusCond *cond);
87 int32_t SoftBusCondWait(SoftBusCond *cond, SoftBusMutex *mutex, SoftBusSysTime *time);
88 int32_t SoftBusCondDestroy(SoftBusCond *cond);
/foundation/multimedia/av_codec/services/engine/codec/video/hcodec/
Dhcodec_log.h68 #define IF_TRUE_RETURN_VAL(cond, val) \ argument
70 if (cond) { \
74 #define IF_TRUE_RETURN_VAL_WITH_MSG(cond, val, msg, ...) \ argument
76 if (cond) { \
81 #define IF_TRUE_RETURN_VOID(cond) \ argument
83 if (cond) { \
87 #define IF_TRUE_RETURN_VOID_WITH_MSG(cond, msg, ...) \ argument
89 if (cond) { \
/foundation/communication/dsoftbus/tests/adapter/unittest/
Dsoftbus_thread_test.cpp772 SoftBusCond cond = 0; variable
773 int32_t ret = SoftBusCondInit(&cond);
775 EXPECT_TRUE(cond != 0);
798 SoftBusCond cond = 0; variable
799 int32_t ret = SoftBusCondSignal(&cond);
811 SoftBusCond cond = 0; variable
812 int32_t ret = SoftBusCondInit(&cond);
814 EXPECT_TRUE(cond != 0);
815 ret = SoftBusCondSignal(&cond);
839 SoftBusCond cond = 0; variable
[all …]

1234