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

@ -62,6 +62,7 @@ static errno_t pthread_detach_impl(struct PosixThread *pt) {
* @returnserrno
*/
errno_t pthread_detach(pthread_t thread) {
unassert(thread);
struct PosixThread *pt = (struct PosixThread *)thread;
errno_t err = pthread_detach_impl(pt);
STRACE("pthread_detach(%d) → %s", _pthread_tid(pt), DescribeErrno(err));