Lines Matching refs:status
33 int status = pthread_mutex_init(&mMutex, nullptr); in init() local
34 if (status) { in init()
35 ALOGE("Signal::init: mutex init failure: %s", strerror(status)); in init()
39 status = pthread_cond_init(&mCondition, nullptr); in init()
40 if (status) { in init()
41 ALOGE("Signal::init: condition init failure: %s", strerror(status)); in init()
50 int status = pthread_mutex_lock(&mMutex); in set() local
51 if (status) { in set()
52 ALOGE("Signal::set: error locking for set condition: %s", strerror(status)); in set()
58 status = pthread_cond_signal(&mCondition); in set()
59 if (status) { in set()
60 ALOGE("Signal::set: error on set condition: %s", strerror(status)); in set()
63 status = pthread_mutex_unlock(&mMutex); in set()
64 if (status) { in set()
65 ALOGE("Signal::set: error unlocking for set condition: %s", strerror(status)); in set()
70 int status = pthread_mutex_lock(&mMutex); in wait() local
71 if (status) { in wait()
72 ALOGE("Signal::wait: error locking for condition: %s", strerror(status)); in wait()
77 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
80 if (!status) { in wait()
83 ALOGE("Signal::wait: error waiting for condition: %s", strerror(status)); in wait()
86 status = pthread_mutex_unlock(&mMutex); in wait()
87 if (status) { in wait()
88 ALOGE("Signal::wait: error unlocking for condition: %s", strerror(status)); in wait()