Notes, Clocks and timers posix section 14, Functions implemented – Comtrol eCos User Manual
Page 465: Functions omitted, Clocks and timers [posix section 14
Chapter 31. POSIX Standard Support
Notes
•
The functions sched_setparam(), sched_getparam(), sched_setscheduler() and sched_getscheduler() are present
but always return an error.
•
The scheduler policy SCHED_OTHER is equivalent to SCHED_RR.
•
Only PTHREAD_SCOPE_SYSTEM is supported as a contentionscope attribute.
•
The default thread scheduling attributes are:
contentionscope
PTHREAD_SCOPE_SYSTEM
inheritsched
PTHREAD_INHERIT_SCHED
schedpolicy
SCHED_OTHER
schedparam.sched
0
•
Mutex priority inversion protection is controlled by a number of kernel configuration options.
If
CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_INHERIT
is
defined
then
{_POSIX_THREAD_PRIO_INHERIT}
will
be
defined
and
PTHREAD_PRIO_INHERIT
may
be
set
as
the
protocol
in
a
pthread_mutexattr_t
object.
If
CYGSEM_KERNEL_SYNCH_MUTEX_PRIORITY_INVERSION_PROTOCOL_CEILING is defined then
{_POSIX_THREAD_PRIO_PROTECT} will be defined and PTHREAD_PRIO_PROTECT may be set as the
protocol in a pthread_mutexattr_t object.
•
The default attribute values set by pthread_mutexattr_init() is to set the protocol attribute to
PTHREAD_PRIO_NONE and the prioceiling attribute to zero.
Clocks and Timers [POSIX Section 14]
Functions Implemented
int clock_settime( clockid_t clock_id,
const struct timespec
∗
tp);
int clock_gettime( clockid_t clock_id, struct timespec
∗
tp);
int clock_getres( clockid_t clock_id, struct timespec
∗
tp);
int timer_create( clockid_t clock_id, struct sigevent
∗
evp,
timer_t
∗
timer_id);
int timer_delete( timer_t timer_id );
int timer_settime( timer_t timerid, int flags,
const struct itimerspec
∗
value,
struct itimerspec
∗
ovalue );
int timer_gettime( timer_t timerid, struct itimerspec
∗
value );
int timer_getoverrun( timer_t timerid );
int nanosleep( const struct timespec
∗
rqtp, struct timespec
∗
rmtp);
Functions Omitted
<none>
361