Lines Matching refs:status
34 int status = pthread_mutex_init(&mMutex, nullptr); in init() local
35 if (status) { in init()
40 status = pthread_cond_init(&mCondition, nullptr); in init()
41 if (status) { in init()
51 int status; in set() local
53 status = pthread_mutex_lock(&mMutex); in set()
54 if (status) { in set()
55 ALOGE("LocklessCommandFifo: error %i locking for set condition.", status); in set()
61 status = pthread_cond_signal(&mCondition); in set()
62 if (status) { in set()
63 ALOGE("LocklessCommandFifo: error %i on set condition.", status); in set()
66 status = pthread_mutex_unlock(&mMutex); in set()
67 if (status) { in set()
68 ALOGE("LocklessCommandFifo: error %i unlocking for set condition.", status); in set()
73 int status; in wait() local
76 status = pthread_mutex_lock(&mMutex); in wait()
77 if (status) { in wait()
78 ALOGE("LocklessCommandFifo: error %i locking for condition.", status); in wait()
84 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
87 status = pthread_cond_timeout_np(&mCondition, &mMutex, timeout / 1000000); in wait()
90 status = pthread_cond_wait(&mCondition, &mMutex); in wait()
95 if (!status) { in wait()
100 if (status != ETIMEDOUT) { in wait()
101 ALOGE("LocklessCommandFifo: error %i waiting for condition.", status); in wait()
106 status = pthread_mutex_unlock(&mMutex); in wait()
107 if (status) { in wait()
108 ALOGE("LocklessCommandFifo: error %i unlocking for condition.", status); in wait()