summaryrefslogtreecommitdiff
path: root/lib/libpthread/pthread_int.h
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2020-01-27 20:50:05 +0000
committerad <ad@NetBSD.org>2020-01-27 20:50:05 +0000
commit4d4e7e41ce84be764e4dff945164d41e02ddc16f (patch)
tree2bf6c10c17ab8a0005cf219273c489f1c303c06f /lib/libpthread/pthread_int.h
parentd7433432749b0a47b1aaf6d209a186658e741663 (diff)
pthread_detach(), pthread_join(): go back to using _lwp_detach() and
_lwp_wait(), rather than doing it all in userspace. There's less to go wrong. Doesn't seem to be a performance penalty.
Diffstat (limited to 'lib/libpthread/pthread_int.h')
-rw-r--r--lib/libpthread/pthread_int.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libpthread/pthread_int.h b/lib/libpthread/pthread_int.h
index da2d8e984fc..80975354c51 100644
--- a/lib/libpthread/pthread_int.h
+++ b/lib/libpthread/pthread_int.h
@@ -1,7 +1,8 @@
-/* $NetBSD: pthread_int.h,v 1.98 2020/01/13 18:22:56 ad Exp $ */
+/* $NetBSD: pthread_int.h,v 1.99 2020/01/27 20:50:05 ad Exp $ */
/*-
- * Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008 The NetBSD Foundation, Inc.
+ * Copyright (c) 2001, 2002, 2003, 2006, 2007, 2008, 2020
+ * The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
@@ -107,8 +108,6 @@ struct __pthread_st {
int pt_willpark; /* About to park */
lwpid_t pt_unpark; /* Unpark this when parking */
struct pthread_lock_ops pt_lockops;/* Cached to avoid PIC overhead */
- pthread_mutex_t *pt_droplock; /* Drop this lock if cancelled */
- pthread_cond_t pt_joiners; /* Threads waiting to join. */
void *(*pt_func)(void *);/* Function to call at start. */
void *pt_arg; /* Argument to pass at start. */