多线程编程指南

pthread_attr_getguardsize 语法

#include <pthread.h>



int pthread_attr_getguardsize(const pthread_attr_t *attr, 

										size_t  *guardsize);

允许一致的实现将 guardsize 中包含的值向上舍入为可配置系统变量 PAGESIZE 的倍数。请参见 sys/mman.h 中的 PAGESIZE。如果实现将 guardsize 的值向上舍入为 PAGESIZE 的倍数,则以 guardsize(先前调用 pthread_attr_setguardsize() 时指定的溢出保护区大小)为单位存储对指定 attrpthread_attr_getguardsize() 的调用。