Home | History | Annotate | Download | only in pthread_equal

Lines Matching refs:ret

50   * UNRESOLVED(ret, descr);
51 * where descr is a description of the error and ret is an int (error code for example)
101 int ret;
107 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL);
108 if (ret != 0) {
109 UNRESOLVED(ret,
115 if ((ret = sem_wait(thearg->sem))) {
121 ret = kill(process, thearg->sig);
122 if (ret != 0) {
154 int ret = 0;
159 ret = pthread_sigmask(SIG_UNBLOCK, &usersigs, NULL);
160 if (ret != 0) {
161 UNRESOLVED(ret,
168 ret = pthread_equal(me, *(pthread_t *) arg);
169 if (ret != 0) {
170 UNRESOLVED(ret,
174 ret = pthread_equal(me, me);
175 if (ret == 0) {
176 UNRESOLVED(ret, "pthread_equal returned a bad result");
178 if (ret == EINTR) {
188 int ret;
200 if ((ret = sigaction(SIGUSR1, &sa, NULL))) {
201 UNRESOLVED(ret, "Unable to register signal handler1");
204 if ((ret = sigaction(SIGUSR2, &sa, NULL))) {
205 UNRESOLVED(ret, "Unable to register signal handler2");
210 ret = sigaddset(&usersigs, SIGUSR1);
211 ret |= sigaddset(&usersigs, SIGUSR2);
212 if (ret != 0) {
213 UNRESOLVED(ret, "Unable to add SIGUSR1 or 2 to a signal set");
217 ret = pthread_sigmask(SIG_BLOCK, &usersigs, NULL);
218 if (ret != 0) {
219 UNRESOLVED(ret,
233 if ((ret = pthread_create(&th_work, NULL, test, (void *)&me))) {
234 UNRESOLVED(ret, "Worker thread creation failed");
244 if ((ret = pthread_create(&th_sig1, NULL, sendsig, (void *)&arg1))) {
245 UNRESOLVED(ret, "Signal 1 sender thread creation failed");
247 if ((ret = pthread_create(&th_sig2, NULL, sendsig, (void *)&arg2))) {
248 UNRESOLVED(ret, "Signal 2 sender thread creation failed");
260 if ((ret = pthread_join(th_sig1, NULL))) {
261 UNRESOLVED(ret, "Signal 1 sender thread join failed");
264 if ((ret = pthread_join(th_sig2, NULL))) {
265 UNRESOLVED(ret, "Signal 2 sender thread join failed");
268 if ((ret = pthread_join(th_work, NULL))) {
269 UNRESOLVED(ret, "Worker thread join failed");