Lines Matching refs:status
33 int status = pthread_mutex_init(&mMutex, NULL); in init() local
34 if (status) { in init()
39 status = pthread_cond_init(&mCondition, NULL); in init()
40 if (status) { in init()
50 int status; in set() local
52 status = pthread_mutex_lock(&mMutex); in set()
53 if (status) { in set()
54 ALOGE("LocklessCommandFifo: error %i locking for set condition.", status); in set()
60 status = pthread_cond_signal(&mCondition); in set()
61 if (status) { in set()
62 ALOGE("LocklessCommandFifo: error %i on set condition.", status); in set()
65 status = pthread_mutex_unlock(&mMutex); in set()
66 if (status) { in set()
67 ALOGE("LocklessCommandFifo: error %i unlocking for set condition.", status); in set()
72 int status; in wait() local
75 status = pthread_mutex_lock(&mMutex); in wait()
76 if (status) { in wait()
77 ALOGE("LocklessCommandFifo: error %i locking for condition.", status); in wait()
83 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
86 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000); in wait()
89 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
94 if (!status) { in wait()
98 if (status != ETIMEDOUT) { in wait()
99 ALOGE("LocklessCommandFifo: error %i waiting for condition.", status); in wait()
103 status = pthread_mutex_unlock(&mMutex); in wait()
104 if (status) { in wait()
105 ALOGE("LocklessCommandFifo: error %i unlocking for condition.", status); in wait()