mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-18 06:30:05 +00:00
Update.
2003-08-02 Ulrich Drepper <drepper@redhat.com> * sysdeps/pthread/createthread.c (do_clone): Only use sched_setschduler and pass correct parameters.
This commit is contained in:
parent
20eb79709e
commit
5c5252bd52
@ -1,3 +1,8 @@
|
|||||||
|
2003-08-02 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/pthread/createthread.c (do_clone): Only use
|
||||||
|
sched_setschduler and pass correct parameters.
|
||||||
|
|
||||||
2003-07-31 Jakub Jelinek <jakub@redhat.com>
|
2003-07-31 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* sysdeps/pthread/pthread.h (pthread_attr_setstackaddr,
|
* sysdeps/pthread/pthread.h (pthread_attr_setstackaddr,
|
||||||
|
@ -79,17 +79,11 @@ do_clone (struct pthread *pd, const struct pthread_attr *attr,
|
|||||||
/* Set the scheduling parameters. */
|
/* Set the scheduling parameters. */
|
||||||
if ((attr->flags & ATTR_FLAG_NOTINHERITSCHED) != 0)
|
if ((attr->flags & ATTR_FLAG_NOTINHERITSCHED) != 0)
|
||||||
{
|
{
|
||||||
res = INTERNAL_SYSCALL (sched_setparam, err, 2, pd->tid,
|
res = INTERNAL_SYSCALL (sched_setscheduler, err, 3, pd->tid,
|
||||||
&pd->schedparam);
|
pd->schedpolicy, &pd->schedparam);
|
||||||
|
|
||||||
if (__builtin_expect (! INTERNAL_SYSCALL_ERROR_P (res, err), 1))
|
if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (res, err), 0))
|
||||||
{
|
goto err_out;
|
||||||
res = INTERNAL_SYSCALL (sched_setscheduler, err, 2, pd->tid,
|
|
||||||
&pd->schedpolicy);
|
|
||||||
|
|
||||||
if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (res, err), 0))
|
|
||||||
goto err_out;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Now start the thread for real. */
|
/* Now start the thread for real. */
|
||||||
|
Loading…
Reference in New Issue
Block a user