Back to index

glibc  2.9
pthread_attr_setschedparam.c File Reference
#include <assert.h>
#include <errno.h>
#include <string.h>
#include "pthreadP.h"

Go to the source code of this file.


int __pthread_attr_setschedparam (pthread_attr_t *attr, const struct sched_param *param)

Function Documentation

Definition at line 27 of file pthread_attr_setschedparam.c.

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

  /* Copy the new values.  */
  memcpy (&iattr->schedparam, param, sizeof (struct sched_param));

  /* Remember we set the value.  */
  iattr->flags |= ATTR_FLAG_SCHED_SET;

  return 0;

Here is the call graph for this function: