[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

sem_timedwait error


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 

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 
Moreover, the problem is considerable for real-time systems because of the 
lost of precision.

Any idea ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rtems.rtems.org/pipermail/rtems-users/attachments/20070515/bd7c1231/attachment.html