diff options
| author | Alfred Perlstein <alfred@FreeBSD.org> | 2002-05-13 07:58:15 +0000 |
|---|---|---|
| committer | Alfred Perlstein <alfred@FreeBSD.org> | 2002-05-13 07:58:15 +0000 |
| commit | efe5270b1ec6d15a0b954ef5fe2de004637e0c21 (patch) | |
| tree | 560dda98ad29714a8b86e7627eb2c047ba236df3 /lib/libpthread/thread/thr_private.h | |
| parent | 289fc68db6c341335038e668fcd64019bf028a1a (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_private.h')
| -rw-r--r-- | lib/libpthread/thread/thr_private.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libpthread/thread/thr_private.h b/lib/libpthread/thread/thr_private.h index ec15c3a02bcf..333c02e9ba12 100644 --- a/lib/libpthread/thread/thr_private.h +++ b/lib/libpthread/thread/thr_private.h @@ -421,8 +421,11 @@ enum pthread_susp { * Since mmap() makes it possible to specify the maximum growth of a MAP_STACK * region, an unmapped gap between thread stacks achieves the same effect as * explicitly mapped red zones. + * This is declared and initialized in uthread_init.c. */ -#define PTHREAD_GUARD_DEFAULT PAGE_SIZE +extern int pthread_guard_default; + +extern int pthread_page_size; /* * Maximum size of initial thread's stack. This perhaps deserves to be larger @@ -431,9 +434,6 @@ enum pthread_susp { */ #define PTHREAD_STACK_INITIAL 0x100000 -/* Size of the scheduler stack: */ -#define SCHED_STACK_SIZE PAGE_SIZE - /* * Define the different priority ranges. All applications have thread * priorities constrained within 0-31. The threads library raises the @@ -971,7 +971,7 @@ SCLASS struct pthread_attr pthread_attr_default #ifdef GLOBAL_PTHREAD_PRIVATE = { SCHED_RR, 0, TIMESLICE_USEC, PTHREAD_DEFAULT_PRIORITY, PTHREAD_CREATE_RUNNING, PTHREAD_CREATE_JOINABLE, NULL, NULL, NULL, - PTHREAD_STACK_DEFAULT, PTHREAD_GUARD_DEFAULT }; + PTHREAD_STACK_DEFAULT, -1 }; #else ; #endif |
