Back to index

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

Go to the source code of this file.


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

Function Documentation

int __pthread_attr_getschedparam ( pthread_attr_t attr,
struct sched_param param 
) const

Definition at line 26 of file pthread_attr_getschedparam.c.

  struct pthread_attr *iattr;

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

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

  return 0;