summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'global.c')
-rw-r--r--global.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/global.c b/global.c
index cbc300d..406d203 100644
--- a/global.c
+++ b/global.c
@@ -11,6 +11,29 @@
#include "pthread.h"
#include "implement.h"
+#define PTHREAD_THREADS_MAX 128
+#define PTHREAD_STACK_MIN 65535
+
+/* Convert these to defined when implemented. */
+#define _POSIX_THREAD_ATTR_STACKSIZE
+#ifdef _POSIX_THREAD_ATTR_STACKADDR
+#undef _POSIX_THREAD_ATTR_STACKADDR
+#endif
+
+/* Making these constants will mean that applications remain binary
+ compatible between versions of the DLL. */
+
+const int _pthread_create_joinable = 0;
+const int _pthread_create_detached = 1;
+
+/* Cancelability attributes */
+const int _pthread_cancel_enable = 0;
+const int _pthread_cancel_disable = 1;
+
+const int _pthread_cancel_asynchronous = 0;
+const int _pthread_cancel_deferred = 1;
+
+
pthread_mutex_t _pthread_count_mutex = PTHREAD_MUTEX_INITIALIZER;
DWORD _pthread_threads_count = 0;