diff options
author | Jason Evans <jasone@FreeBSD.org> | 2001-07-20 04:23:11 +0000 |
---|---|---|
committer | Jason Evans <jasone@FreeBSD.org> | 2001-07-20 04:23:11 +0000 |
commit | aa33517e949a0603d3bac6cba0c05344ca68754c (patch) | |
tree | 656e85a738aa3a12d8926a342cea87c2eae35e1d /include | |
parent | 50ea040994690e6a3141549c18dfd59a25de75e1 (diff) | |
download | src-aa33517e949a0603d3bac6cba0c05344ca68754c.tar.gz src-aa33517e949a0603d3bac6cba0c05344ca68754c.zip |
Implement pthread_attr_[gs]etguardsize(). Non-default-size stacks used to
be malloc()ed, but they are now allocated using mmap(), just as the
default-size stacks are. A separate cache of stacks is kept for
non-default-size stacks.
Collaboration with: deischen
Notes
Notes:
svn path=/head/; revision=80021
Diffstat (limited to 'include')
-rw-r--r-- | include/pthread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h index 54fe73649dc5..ec11d6fe0578 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -192,12 +192,15 @@ __BEGIN_DECLS int pthread_attr_destroy __P((pthread_attr_t *)); int pthread_attr_getstacksize __P((const pthread_attr_t *, size_t *)); +int pthread_attr_getguardsize __P((const pthread_attr_t *, + size_t *)); int pthread_attr_getstackaddr __P((const pthread_attr_t *, void **)); int pthread_attr_getdetachstate __P((const pthread_attr_t *, int *)); int pthread_attr_init __P((pthread_attr_t *)); int pthread_attr_setstacksize __P((pthread_attr_t *, size_t)); +int pthread_attr_setguardsize __P((pthread_attr_t *, size_t)); int pthread_attr_setstackaddr __P((pthread_attr_t *, void *)); int pthread_attr_setdetachstate __P((pthread_attr_t *, int)); void pthread_cleanup_pop __P((int)); |