Deleted Added
full compact
32c32
< * $FreeBSD: head/lib/libthr/thread/thr_detach.c 115260 2003-05-23 09:48:20Z mtm $
---
> * $FreeBSD: head/lib/libthr/thread/thr_detach.c 115693 2003-06-02 11:01:00Z mtm $
47c47,50
< if (pthread->attr.flags & PTHREAD_DETACHED)
---
> _SPINLOCK(&pthread->lock);
>
> if (pthread->attr.flags & PTHREAD_DETACHED) {
> _SPINUNLOCK(&pthread->lock);
48a52
> }
52,57d55
< /*
< * Defer signals to protect the scheduling queues from
< * access by the signal handler:
< */
< GIANT_LOCK(curthread);
<
60a59
> _thread_critical_enter(joiner);
73a73
> _thread_critical_exit(joiner);
76c76
< GIANT_UNLOCK(curthread);
---
> _SPINUNLOCK(&pthread->lock);