diff options
author | rpj <rpj> | 2005-05-16 15:42:44 +0000 |
---|---|---|
committer | rpj <rpj> | 2005-05-16 15:42:44 +0000 |
commit | a824c43d3f20fc5722c5fd8f0f942f632b961723 (patch) | |
tree | e33174f1e54bcb5dffa3fb16be69713f4cc497c0 /pthread.h | |
parent | 08e2916eb07fb75b2907032e2418316bf980d945 (diff) |
''
Diffstat (limited to 'pthread.h')
-rw-r--r-- | pthread.h | 47 |
1 files changed, 28 insertions, 19 deletions
@@ -510,40 +510,49 @@ extern "C" * Maximum number of threads supported per * process (must be at least 64). * - * _POSIX_SEM_NSEMS_MAX - * The maximum number of semaphores a process can have. - * (only defined if not already defined) + * SEM_NSEMS_MAX + * The maximum number of semaphores a process can have. + * (must be at least 256) * - * _POSIX_SEM_VALUE_MAX - * The maximum value a semaphore can have. - * (only defined if not already defined) + * SEM_VALUE_MAX + * The maximum value a semaphore can have. + * (must be at least 32767) * */ +#undef _POSIX_THREAD_DESTRUCTOR_ITERATIONS +#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 + #undef PTHREAD_DESTRUCTOR_ITERATIONS -#define PTHREAD_DESTRUCTOR_ITERATIONS 4 +#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS + +#undef _POSIX_THREAD_KEYS_MAX +#define _POSIX_THREAD_KEYS_MAX 128 #undef PTHREAD_KEYS_MAX -#define PTHREAD_KEYS_MAX 64 +#define PTHREAD_KEYS_MAX _POSIX_THREAD_KEYS_MAX #undef PTHREAD_STACK_MIN -#define PTHREAD_STACK_MIN 0 - -#if PTW32_LEVEL < 2 - /* Arbitrary value */ -# undef PTHREAD_THREADS_MAX -# define PTHREAD_THREADS_MAX 2019 -#endif +#define PTHREAD_STACK_MIN 0 - /* Arbitrary value */ #undef _POSIX_THREAD_THREADS_MAX -#define _POSIX_THREAD_THREADS_MAX 2019 +#define _POSIX_THREAD_THREADS_MAX 64 /* Arbitrary value */ +#undef PTHREAD_THREADS_MAX +#define PTHREAD_THREADS_MAX 2019 + #undef _POSIX_SEM_NSEMS_MAX -#define _POSIX_SEM_NSEMS_MAX 1024 +#define _POSIX_SEM_NSEMS_MAX 256 + + /* Arbitrary value */ +#undef SEM_NSEMS_MAX +#define SEM_NSEMS_MAX 1024 #undef _POSIX_SEM_VALUE_MAX -#define _POSIX_SEM_VALUE_MAX (INT_MAX/2) +#define _POSIX_SEM_VALUE_MAX 32767 + +#undef SEM_VALUE_MAX +#define SEM_VALUE_MAX INT_MAX #if __GNUC__ && ! defined (__declspec) |