Skip to content

Commit

Permalink
Merge pull request #184 from AmigaLabs/beta10
Browse files Browse the repository at this point in the history
Merge Beta10 into master
  • Loading branch information
afxgroup committed Jun 3, 2024
2 parents 55bf7ab + c025408 commit 90c4621
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/pthread/pthread_mutex_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ pthread_mutex_lock(pthread_mutex_t *mutex) {
if (!isLocked) {
SHOWMSG("DeadLock");
return EDEADLK;
}
} else {
MutexRelease(mutex->mutex);
}
}

SHOWMSG("MutexObtain");
MutexObtain(mutex->mutex);
SHOWMSG("Done");

return 0;
}
}

0 comments on commit 90c4621

Please sign in to comment.