sem_timedwait error

Aitor.Viana.Sanchez at esa.int Aitor.Viana.Sanchez at esa.int
Tue May 15 15:12:00 UTC 2007


Hi,

i am working with rtems 4.6 over LEON2 architecture. I got a problem with 
the sem_timedwait POSIX function. This function has the next declaration: 

int sem_timedwait(sem_t *restrict sem, const struct timespec *restrict 
abs_timeout);

the problem is that the abs_timeout must have the field tv_nsec cleared 
(set to 0x0) otherwise the function is not executed correctly. I think 
this is a bug in the POSIX API and I guess it would also affect other 
platforms. 
Moreover, the problem is considerable for real-time systems because of the 
lost of precision.

Any idea ?


Cheers,
 
Aitor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20070515/bd7c1231/attachment.html>


More information about the users mailing list