Lines Matching defs:res
40 int res = pthread_mutex_init (&mMutex, NULL);
41 if (res != 0)
43 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res);
59 int res = pthread_mutex_destroy (&mMutex);
60 if (res != 0)
62 ALOGE ("Mutex::~Mutex: fail destroy; error=0x%X", res);
78 int res = pthread_mutex_lock (&mMutex);
79 if (res != 0)
81 ALOGE ("Mutex::lock: fail lock; error=0x%X", res);
97 int res = pthread_mutex_unlock (&mMutex);
98 if (res != 0)
100 ALOGE ("Mutex::unlock: fail unlock; error=0x%X", res);
116 int res = pthread_mutex_trylock (&mMutex);
117 if ((res != 0) && (res != EBUSY))
119 ALOGE ("Mutex::tryLock: error=0x%X", res);
121 return res == 0;