boostorg / interprocess

Boost.org interprocess module
http://boost.org/libs/interprocess
134 stars 117 forks source link

Feature Request: Add support for monotonic/steady_clock timeouts #182

Closed davidsj2 closed 3 months ago

davidsj2 commented 2 years ago

Current synchronization objects use absolute time for timeouts, which are susceptible to unexpected behavior in the face of clock adjustments. It would be nice to support relative timeouts using monotonic clock in interprocess condition variables and mutexes like is supported in POSIX and the C++ standard lib (generally), respectively.

igaztanaga commented 2 years ago

From Version 1.78 already supports relative timeouts (e.g. try_lock_for):

https://www.boost.org/doc/libs/1_79_0/doc/html/boost/interprocess/interprocess_mutex.html#idm30792-bb

Isn't that what you are requesting?

igaztanaga commented 3 months ago

Closing the issue as completed.