diff options
author | rpj <rpj> | 1998-07-25 15:19:39 +0000 |
---|---|---|
committer | rpj <rpj> | 1998-07-25 15:19:39 +0000 |
commit | 0830eed6a52cc9386913075dcc5b00de2596624b (patch) | |
tree | b4097b3a50af09b425b9278961c643e313d3cf5d /global.c | |
parent | 514f53305f6c42256c672d552aa9d477c1266163 (diff) |
Sun Jul 26 00:09:59 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* pthread.h: Converting PTHREAD_* defines to alias the (const int)
values in global.c.
* global.c: Started converting PTHREAD_* defines to (const int) as
a part of making the eventual pthreads DLL binary compatible
through version changes.
Diffstat (limited to 'global.c')
-rw-r--r-- | global.c | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -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; |