summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'global.c')
-rw-r--r--global.c22
1 files changed, 22 insertions, 0 deletions
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 <windows.h>
+#include <process.h>
+#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;