[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Does RTEMS support the POSIX ; pthread_cond_timedwait() ?
- Date: Fri, 10 Feb 2006 05:34:28 -0600
- From: joel.sherrill at oarcorp.com (Joel Sherrill)
- Subject: Does RTEMS support the POSIX ; pthread_cond_timedwait() ?
>I have to use the pthread_cond_timedwait() but I'm afraid that RTEMS doesn't
>support this POSIX function. Is it true ? Because If I control the function I
>have always a error message, It creates the thread but not timed wait.
>So is it implemented in RTEMS ? Or I have to set some particular condition?
Yes it is supported. You can look at the source and
clearly see that. It is in cpukit/posix/src/cond*.c.
For condition variables to work, you must have a mutex
and a condition variable. That implies you have to
create them and will need to configure non-zero
#define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES N
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES N