Back to index

glibc  2.9
pthread_attr_setguardsize.c File Reference
#include <assert.h>
#include "pthreadP.h"

Go to the source code of this file.


int pthread_attr_setguardsize (pthread_attr_t *attr, size_t guardsize)

Function Documentation

int pthread_attr_setguardsize ( pthread_attr_t attr,
size_t  guardsize 

Definition at line 25 of file pthread_attr_setguardsize.c.

  struct pthread_attr *iattr;

  assert (sizeof (*attr) >= sizeof (struct pthread_attr));
  iattr = (struct pthread_attr *) attr;

  /* Note that we don't round the value here.  The standard requires
     that subsequent pthread_attr_getguardsize calls return the value
     set by the user.  */
  iattr->guardsize = guardsize;

  return 0;

Here is the caller graph for this function: