Home
last modified time | relevance | path

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

1234

/hardware/google/gfxstream/guest/mesa/src/util/
Dcnd_monotonic.h43 pthread_cond_t cond;
48 u_cnd_monotonic_init(struct u_cnd_monotonic *cond) in u_cnd_monotonic_init() argument
50 assert(cond != NULL); in u_cnd_monotonic_init()
53 InitializeConditionVariable(&cond->condvar); in u_cnd_monotonic_init()
60 (pthread_cond_init(&cond->cond, &condattr) == 0)) { in u_cnd_monotonic_init()
72 u_cnd_monotonic_destroy(struct u_cnd_monotonic *cond) in u_cnd_monotonic_destroy() argument
74 assert(cond != NULL); in u_cnd_monotonic_destroy()
79 pthread_cond_destroy(&cond->cond); in u_cnd_monotonic_destroy()
84 u_cnd_monotonic_broadcast(struct u_cnd_monotonic *cond) in u_cnd_monotonic_broadcast() argument
86 assert(cond != NULL); in u_cnd_monotonic_broadcast()
[all …]
Du_thread.h148 cnd_t cond; member
157 cnd_init(&sema->cond); in util_semaphore_init()
165 cnd_destroy(&sema->cond); in util_semaphore_destroy()
174 cnd_signal(&sema->cond); in util_semaphore_signal()
184 cnd_wait(&sema->cond, &sema->mutex); in util_semaphore_wait()
/hardware/google/gfxstream/guest/mesa/include/android_stub/log/
Dlog_main.h87 #define android_vprintLog(prio, cond, tag, ...) \ argument
122 #define android_printAssert(cond, tag, ...) \ argument
123 __android_log_assert(cond, tag, \
134 #define LOG_ALWAYS_FATAL_IF(cond, ...) \ argument
135 ((__predict_false(cond)) ? (__FAKE_USE_VA_ARGS(__VA_ARGS__), \
136 ((void)android_printAssert(#cond, LOG_TAG, ##__VA_ARGS__))) \
153 #define LOG_FATAL_IF(cond, ...) __FAKE_USE_VA_ARGS(__VA_ARGS__) argument
162 #define LOG_FATAL_IF(cond, ...) LOG_ALWAYS_FATAL_IF(cond, ##__VA_ARGS__) argument
175 #define ALOG_ASSERT(cond, ...) LOG_FATAL_IF(!(cond), ##__VA_ARGS__) argument
214 #define ALOGV_IF(cond, ...) __FAKE_USE_VA_ARGS(__VA_ARGS__) argument
[all …]
Dlog_radio.h64 #define RLOGV_IF(cond, ...) ((void)0) argument
66 #define RLOGV_IF(cond, ...) \ argument
67 ((__predict_false(cond)) \
84 #define RLOGD_IF(cond, ...) \ argument
85 ((__predict_false(cond)) \
101 #define RLOGI_IF(cond, ...) \ argument
102 ((__predict_false(cond)) \
118 #define RLOGW_IF(cond, ...) \ argument
119 ((__predict_false(cond)) \
135 #define RLOGE_IF(cond, ...) \ argument
[all …]
Dlog_system.h62 #define SLOGV_IF(cond, ...) ((void)0) argument
64 #define SLOGV_IF(cond, ...) \ argument
65 ((__predict_false(cond)) \
82 #define SLOGD_IF(cond, ...) \ argument
83 ((__predict_false(cond)) \
99 #define SLOGI_IF(cond, ...) \ argument
100 ((__predict_false(cond)) \
116 #define SLOGW_IF(cond, ...) \ argument
117 ((__predict_false(cond)) \
133 #define SLOGE_IF(cond, ...) \ argument
[all …]
/hardware/invensense/65xx/libsensors_iio/software/core/driver/include/
Dlog.h145 #define CONDITION(cond) ((cond) != 0) argument
150 #define MPL_LOGV_IF(cond, fmt, ...) \ argument
153 #define MPL_LOGV_IF(cond, fmt, ...) \
154 ((CONDITION(cond)) \
168 #define MPL_LOGD_IF(cond, fmt, ...) \ argument
169 ((CONDITION(cond)) \
186 #define MPL_LOGI_IF(cond, fmt, ...) \ argument
187 ((CONDITION(cond)) \
204 #define MPL_LOGW_IF(cond, fmt, ...) \ argument
205 ((CONDITION(cond)) \
[all …]
/hardware/invensense/6515/libsensors_iio/software/core/driver/include/
Dlog.h176 #define CONDITION(cond) ((cond) != 0) argument
181 #define MPL_LOGV_IF(cond, fmt, ...) \ argument
184 #define MPL_LOGV_IF(cond, fmt, ...) \
185 ((CONDITION(cond)) \
204 #define MPL_LOGD_IF(cond, fmt, ...) \ argument
205 ((CONDITION(cond)) \
227 #define MPL_LOGI_IF(cond, fmt, ...) \ argument
228 ((CONDITION(cond)) \
245 #define MPL_LOGW_IF(cond, fmt, ...) \ argument
246 ((CONDITION(cond)) \
[all …]
/hardware/google/gfxstream/guest/mesa/src/c11/impl/
Dthreads_posix.c83 cnd_broadcast(cnd_t *cond) in cnd_broadcast() argument
85 assert(cond != NULL); in cnd_broadcast()
86 return (pthread_cond_broadcast(cond) == 0) ? thrd_success : thrd_error; in cnd_broadcast()
91 cnd_destroy(cnd_t *cond) in cnd_destroy() argument
93 assert(cond); in cnd_destroy()
94 pthread_cond_destroy(cond); in cnd_destroy()
99 cnd_init(cnd_t *cond) in cnd_init() argument
101 assert(cond != NULL); in cnd_init()
102 return (pthread_cond_init(cond, NULL) == 0) ? thrd_success : thrd_error; in cnd_init()
107 cnd_signal(cnd_t *cond) in cnd_signal() argument
[all …]
Dthreads_win32.c159 cnd_broadcast(cnd_t *cond) in cnd_broadcast() argument
161 assert(cond != NULL); in cnd_broadcast()
162 WakeAllConditionVariable((PCONDITION_VARIABLE)cond); in cnd_broadcast()
168 cnd_destroy(cnd_t *cond) in cnd_destroy() argument
170 (void)cond; in cnd_destroy()
171 assert(cond != NULL); in cnd_destroy()
177 cnd_init(cnd_t *cond) in cnd_init() argument
179 assert(cond != NULL); in cnd_init()
180 InitializeConditionVariable((PCONDITION_VARIABLE)cond); in cnd_init()
186 cnd_signal(cnd_t *cond) in cnd_signal() argument
[all …]
/hardware/st/secure_element2/secure_element/esehal/src/
Dcompiler.h36 #define __COMPILE_ASSERT(cond) ((void)sizeof(char[1 - 2 * !(cond)])) argument
37 #define _COMPILE_ASSERT(cond) __COMPILE_ASSERT(cond) argument
38 #define COMPILE_ASSERT(cond) _COMPILE_ASSERT(!!(cond)) argument
/hardware/libhardware/modules/camera/3_4/
Dcommon.h27 #define HAL_LOGE_IF(cond, fmt, args...) do { \ argument
28 ALOGE_IF(cond, "%s:%d: " fmt, __func__, __LINE__, ##args); \
35 #define HAL_LOGW_IF(cond, fmt, args...) do { \ argument
36 ALOGW_IF(cond, "%s:%d: " fmt, __func__, __LINE__, ##args); \
43 #define HAL_LOGI_IF(cond, fmt, args...) do { \ argument
44 ALOGI_IF(cond, "%s:%d: " fmt, __func__, __LINE__, ##args); \
/hardware/google/graphics/common/libscaler/
Dlibscaler-common.h47 #define SC_LOGI_IF(cond, fmt, args...) do { \ argument
48 if (cond) \
51 #define SC_LOGE_IF(cond, fmt, args...) do { \ argument
52 if (cond) \
55 #define SC_LOG_ASSERT(cont, fmt, args...) ((void)ALOG_ASSERT(cond, "%s: " fmt, __func__, ##args))
59 #define SC_LOGD_IF(cond, fmt, args...) do { \ argument
60 if (cond) \
65 #define SC_LOGD_IF(cond, fmt, args...) do { } while (0) argument
/hardware/qcom/camera/msm8998/QCamera2/stack/common/
Dcam_semaphore.h50 pthread_cond_t cond; member
56 PTHREAD_COND_INIT(&(s->cond)); in cam_sem_init()
64 pthread_cond_signal(&(s->cond)); in cam_sem_post()
73 rc = pthread_cond_wait(&(s->cond), &(s->mutex)); in cam_sem_wait()
84 rc = pthread_cond_timedwait(&(s->cond), &(s->mutex), abs_timeout); in cam_sem_timedwait()
103 pthread_cond_destroy(&(s->cond)); in cam_sem_destroy()
Dcam_cond.h20 #define PTHREAD_COND_INIT(cond) \ argument
28 rc = pthread_cond_init(cond, &cond_attr); \
/hardware/google/gfxstream/guest/mesa/src/vulkan/wsi/
Dwsi_common_queue.h34 pthread_cond_t cond; member
58 ret = pthread_cond_init(&queue->cond, &condattr); in wsi_queue_init()
70 pthread_cond_destroy(&queue->cond); in wsi_queue_init()
84 pthread_cond_destroy(&queue->cond); in wsi_queue_destroy()
95 pthread_cond_signal(&queue->cond); in wsi_queue_push()
130 ret = pthread_cond_timedwait(&queue->cond, &queue->mutex, &abstime); in wsi_queue_pull()
/hardware/qcom/display/msm8226/libgralloc/
Dgr.h78 pthread_cond_t cond; variable
88 pthread_cond_init(&cond, 0); in Locker()
92 pthread_cond_destroy(&cond); in ~Locker()
95 inline void wait() { pthread_cond_wait(&cond, &mutex); } in wait()
97 inline void signal() { pthread_cond_signal(&cond); } in signal()
/hardware/google/gfxstream/guest/fuchsia/include/cutils/
Dlog.h102 #define LOG_FATAL_IF(cond, ...) __FAKE_USE_VA_ARGS(__VA_ARGS__) argument
108 #define LOG_FATAL_IF(cond, ...) LOG_ALWAYS_FATAL_IF(cond, ##__VA_ARGS__) argument
114 #define ALOG_ASSERT(cond, ...) LOG_FATAL_IF(!(cond), ##__VA_ARGS__) argument
/hardware/qcom/display/msm8084/libgralloc/
Dgr.h78 pthread_cond_t cond; variable
88 pthread_cond_init(&cond, 0); in Locker()
92 pthread_cond_destroy(&cond); in ~Locker()
95 inline void wait() { pthread_cond_wait(&cond, &mutex); } in wait()
97 inline void signal() { pthread_cond_signal(&cond); } in signal()
/hardware/qcom/display/msm8994/libgralloc/
Dgr.h85 pthread_cond_t cond; variable
95 pthread_cond_init(&cond, 0); in Locker()
99 pthread_cond_destroy(&cond); in ~Locker()
102 inline void wait() { pthread_cond_wait(&cond, &mutex); } in wait()
104 inline void signal() { pthread_cond_signal(&cond); } in signal()
/hardware/qcom/display/msm8909w_3100/libgralloc/
Dgr.h81 pthread_cond_t cond; variable
91 pthread_cond_init(&cond, 0); in Locker()
95 pthread_cond_destroy(&cond); in ~Locker()
98 inline void wait() { pthread_cond_wait(&cond, &mutex); } in wait()
100 inline void signal() { pthread_cond_signal(&cond); } in signal()
/hardware/qcom/display/msm8909/libgralloc/
Dgr.h81 pthread_cond_t cond; variable
91 pthread_cond_init(&cond, 0); in Locker()
95 pthread_cond_destroy(&cond); in ~Locker()
98 inline void wait() { pthread_cond_wait(&cond, &mutex); } in wait()
100 inline void signal() { pthread_cond_signal(&cond); } in signal()
/hardware/qcom/display/msm8996/libgralloc/
Dgr.h86 pthread_cond_t cond; variable
96 pthread_cond_init(&cond, 0); in Locker()
100 pthread_cond_destroy(&cond); in ~Locker()
103 inline void wait() { pthread_cond_wait(&cond, &mutex); } in wait()
105 inline void signal() { pthread_cond_signal(&cond); } in signal()
/hardware/ril/libril/
DrilSocketQueue.h49 pthread_cond_t cond; variable
95 cond = PTHREAD_COND_INITIALIZER; in Ril_queue()
105 pthread_cond_wait(&cond, &mutex_instance); in dequeue()
130 pthread_cond_broadcast(&cond); in enqueue()
/hardware/interfaces/tests/libhwbinder/1.0/default/
DScheduleTest.cpp8 #define ASSERT(cond) \ argument
10 if (!(cond)) { \
11 cerr << __func__ << ":" << __LINE__ << " condition:" << #cond \
/hardware/st/nfc/1.1/
Dhal_st21nfc.cc79 pthread_cond_t cond; member
100 ret = pthread_cond_wait(&pcb_data->cond, &pcb_data->mutex); in async_callback_thread_fct()
112 ret = pthread_cond_signal(&pcb_data->cond); in async_callback_thread_fct()
159 ret = pthread_cond_init(&async_callback_data.cond, NULL); in async_callback_thread_start()
193 ret = pthread_cond_signal(&async_callback_data.cond); in async_callback_thread_end()
198 ret = pthread_cond_wait(&async_callback_data.cond, in async_callback_thread_end()
212 ret = pthread_cond_signal(&async_callback_data.cond); in async_callback_thread_end()
248 ret = pthread_cond_wait(&async_callback_data.cond, in async_callback_post()
266 ret = pthread_cond_signal(&async_callback_data.cond); in async_callback_post()

1234