Lines Matching refs:res
43 int res = pthread_mutex_init(&mMutex, NULL); in Mutex() local
44 if (res != 0) { in Mutex()
45 LOG(ERROR) << StringPrintf("Mutex::Mutex: fail init; error=0x%X", res); in Mutex()
59 int res = pthread_mutex_destroy(&mMutex); in ~Mutex() local
60 if (res != 0) { in ~Mutex()
61 LOG(ERROR) << StringPrintf("Mutex::~Mutex: fail destroy; error=0x%X", res); in ~Mutex()
75 int res = pthread_mutex_lock(&mMutex); in lock() local
76 if (res != 0) { in lock()
77 LOG(ERROR) << StringPrintf("Mutex::lock: fail lock; error=0x%X", res); in lock()
91 int res = pthread_mutex_unlock(&mMutex); in unlock() local
92 if (res != 0) { in unlock()
93 LOG(ERROR) << StringPrintf("Mutex::unlock: fail unlock; error=0x%X", res); in unlock()
107 int res = pthread_mutex_trylock(&mMutex); in tryLock() local
108 if ((res != 0) && (res != EBUSY)) { in tryLock()
109 LOG(ERROR) << StringPrintf("Mutex::tryLock: error=0x%X", res); in tryLock()
111 return res == 0; in tryLock()