Fix `pthread_mutex_lock()` check in test_pthread_cooperation

dev/timer
René Kijewski 9 years ago
parent 63ab4510b3
commit f3c90ac4c9

@ -35,7 +35,7 @@ void *run(void *parameter)
int err = pthread_mutex_lock(&mtx);
if (err != 1) {
if (err != 0) {
printf("[!!!] pthread_mutex_lock failed with %d\n", err);
return NULL;
}

Loading…
Cancel
Save