Make some improvements of little consequence

This commit is contained in:
Justine Tunney 2024-07-27 08:20:18 -07:00
parent 690d3df66e
commit 18a620cc1a
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
11 changed files with 92 additions and 14 deletions

View file

@ -354,6 +354,7 @@ static errno_t _pthread_cancel_everyone(void) {
*/
errno_t pthread_cancel(pthread_t thread) {
struct PosixThread *arg;
unassert(thread);
if ((arg = (struct PosixThread *)thread)) {
return _pthread_cancel_single(arg);
} else {