Home | History | Annotate | Download | only in pthread_mutex_unlock

Lines Matching refs:ret

57   * UNRESOLVED(ret, descr);
58 * where descr is a description of the error and ret is an int (error code for example)
88 int ret;
98 ret = pthread_mutexattr_init(&ma);
99 if (ret != 0) {
100 UNRESOLVED(ret, "Mutex attribute init failed");
103 ret = pthread_mutexattr_settype(&ma, PTHREAD_MUTEX_RECURSIVE);
104 if (ret != 0) {
105 UNRESOLVED(ret, "Set type recursive failed");
108 ret = pthread_mutex_init(&m, &ma);
109 if (ret != 0) {
110 UNRESOLVED(ret, "Mutex init failed");
116 ret = pthread_mutex_unlock(&m);
117 if (ret == 0) {
124 ret = pthread_mutex_lock(&m);
125 if (ret != 0) {
126 UNRESOLVED(ret, "Mutex lock failed");
128 ret = pthread_mutex_lock(&m);
129 if (ret != 0) {
130 UNRESOLVED(ret, "Mutex recursive lock failed");
132 ret = pthread_mutex_unlock(&m);
133 if (ret != 0) {
134 UNRESOLVED(ret, "Mutex unlock failed");
136 ret = pthread_mutex_unlock(&m);
137 if (ret != 0) {
138 UNRESOLVED(ret, "Mutex recursive unlock failed");
142 ret = pthread_mutexattr_destroy(&ma);
143 if (ret != 0) {
144 UNRESOLVED(ret, "Mutex attribute destroy failed");
147 ret = pthread_mutex_unlock(&m);
148 if (ret == 0) {