From 5629d479c341f7bfaf89489b88f0fc701860ac6f Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 23 Jul 1998 13:34:41 +0000 Subject: * global.c: New. Global data objects declared here. These moved from pthread.h. * pthread.h: Move implementation hidden definitions into implement.h. * implement.h: Move implementation hidden definitions from pthread.h. Add constants to index into the different handler stacks. * cleanup.c (_pthread_handler_push): Simplify args. Restructure. (_pthread_handler_pop): Simplify args. Restructure. (_pthread_handler_pop_all): Simplify args. Restructure. --- global.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 global.c (limited to 'global.c') diff --git a/global.c b/global.c new file mode 100644 index 0000000..bcc034d --- /dev/null +++ b/global.c @@ -0,0 +1,22 @@ +/* + * global.c + * + * Description: + * This translation unit instantiates data associated with the implementation + * as a whole. + */ + +#include +#include +#include "pthread.h" +#include "implement.h" + +pthread_mutex_t _pthread_count_mutex = PTHREAD_MUTEX_INITIALIZER; + +DWORD _pthread_threads_count = 0; + +_pthread_threads_thread_t _pthread_threads_table[PTHREAD_THREADS_MAX]; + +unsigned short _pthread_once_flag; + +pthread_mutex_t _pthread_once_lock = PTHREAD_MUTEX_INITIALIZER; -- cgit v1.2.3