diff options
| author | Mike Makonnen <mtm@FreeBSD.org> | 2003-05-26 00:37:07 +0000 |
|---|---|---|
| committer | Mike Makonnen <mtm@FreeBSD.org> | 2003-05-26 00:37:07 +0000 |
| commit | ca1c469cc70c4995c4e93a27baed8bed4584d05e (patch) | |
| tree | 4913d71c40094f5da6427b152c90be36f35dfdd6 /lib/libthr/thread/thr_create.c | |
| parent | 2387af9962542480b8c78c8d7f072d41ab8979d6 (diff) | |
Notes
Diffstat (limited to 'lib/libthr/thread/thr_create.c')
| -rw-r--r-- | lib/libthr/thread/thr_create.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index 5b0158dedad4..c86f2446a530 100644 --- a/lib/libthr/thread/thr_create.c +++ b/lib/libthr/thread/thr_create.c @@ -119,11 +119,10 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, new_thread->arch_id = _set_curthread(&new_thread->ctx, new_thread, &ret); if (ret != 0) { if (pattr->stackaddr_attr == NULL) { - /* XXX - We really need to decouple from this lock */ - DEAD_LIST_LOCK; + STACK_LOCK; _thread_stack_free(new_thread->stack, pattr->stacksize_attr, pattr->guardsize_attr); - DEAD_LIST_UNLOCK; + STACK_UNLOCK; } free(new_thread); return (ret); |
