pthread_attr_getinheritsched() doc fix
PATCH 1/1 pthread_attr_getinheritsched() doc fix
Hi,
The attached patchlet fixes the documentation of pthread_attr_getinheritsched() (PTHREAD_INHERIT_SCHED and PTHREAD_EXPLICIT_SCHED were reversed).
Stelian.
skins/posix/thread_attr.c +2 -2
@@ -305,10 +305,10 @@* This service returns at the address @a inheritsched the value of the @a * inheritsched attribute in the attribute object @a attr. * -* Threads created with this attribute set to PTHREAD_EXPLICIT_SCHED will use +* Threads created with this attribute set to PTHREAD_INHERIT_SCHED will use * the same scheduling policy and priority as the thread calling * pthread_create(). Threads created with this attribute set to -* PTHREAD_INHERIT_SCHED will use the value of the @a schedpolicy attribute as +* PTHREAD_EXPLICIT_SCHED will use the value of the @a schedpolicy attribute as * scheduling policy, and the value of the @a schedparam attribute as scheduling * priority. *
Signature · 1 line
Stelian Pop <[email protected]>
Quoted 5 lines · Stelian Pop
Hi,
The attached patchlet fixes the documentation of
pthread_attr_getinheritsched()(PTHREAD_INHERIT_SCHEDandPTHREAD_EXPLICIT_SCHEDwere reversed).
So, someone actually reads the doc :-) Applied, thanks.
Signature · 1 line
Gilles Chanteperdrix.