mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #849 from Kijewski/issue-844
posix: Fix `pthread_mutex_lock()` check in test_pthread_cooperation
This commit is contained in:
commit
5f56a51606
@ -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…
Reference in New Issue
Block a user