about summary refs log tree commit diff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-15 03:24:58 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-15 03:24:58 -0500
commit0b2006c8fea021b7fa1fd267bf270cb8c279f230 (patch)
tree2e00de9bc9e3fdda590ff05b64e77f0bb4e30ec3 /src/internal
parent59666802fba592a59f2f4ea4dcb053287fd55826 (diff)
downloadmusl-0b2006c8fea021b7fa1fd267bf270cb8c279f230.tar.gz
musl-0b2006c8fea021b7fa1fd267bf270cb8c279f230.tar.xz
musl-0b2006c8fea021b7fa1fd267bf270cb8c279f230.zip
begin unifying clone/thread management interface in preparation for porting
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/pthread_impl.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h
index b7892103..d751f197 100644
--- a/src/internal/pthread_impl.h
+++ b/src/internal/pthread_impl.h
@@ -20,9 +20,10 @@
 #define pthread __pthread
 
 struct pthread {
-	struct pthread *self, *join;
-	int errno_val;
+	struct pthread *self;
+	unsigned long tlsdesc[4];
 	pid_t tid, pid;
+	int tsd_used, errno_val, *errno_ptr;
 	volatile int canceldisable, cancelasync, cancelpoint, cancel;
 	unsigned char *map_base;
 	size_t map_size;
@@ -32,12 +33,9 @@ struct pthread {
 	jmp_buf exit_jmp_buf;
 	int detached;
 	int exitlock;
-	unsigned long tlsdesc[4];
 	struct __ptcb *cancelbuf;
 	void **tsd;
-	int tsd_used;
 	pthread_attr_t attr;
-	int *errno_ptr;
 };
 
 static inline struct pthread *__pthread_self()