just fyi: this function uses posix sem_timedwait which is based on CLOCK_REALTIME, so, if between clock_gettime and sem_timedwait system time is will be changed sem_timedwait have a chance to work indefinitely...
i am not sure what changed in latest RH8/CO8 patches but now this chance is much bigger
posix does not provide wait based on CLOCK_MONOTONIC but it seems we can solve problem using std::condition_variable+std::mutex
OFSemaphore::wait(time)
Moderator: Moderator Team
Re: OFSemaphore::wait(time)
update: glibc 2.30+ provides pthread_cond_clockwait и sem_clockwait, imho it will be very interesting to see these functions in ofthread.cc (if available)
Who is online
Users browsing this forum: Google [Bot] and 1 guest