123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #include <assert.h>
- #include <errno.h>
- #include <string.h>
- #include "pthreadP.h"
- int
- __pthread_attr_setschedparam (attr, param)
- pthread_attr_t *attr;
- const struct sched_param *param;
- {
- assert (sizeof (*attr) >= sizeof (struct pthread_attr));
- struct pthread_attr *iattr = (struct pthread_attr *) attr;
-
- memcpy (&iattr->schedparam, param, sizeof (struct sched_param));
-
- iattr->flags |= ATTR_FLAG_SCHED_SET;
- return 0;
- }
- strong_alias (__pthread_attr_setschedparam, pthread_attr_setschedparam)
|