eclipse-iceoryx / iceoryx2

Eclipse iceoryx2™ - true zero-copy inter-process-communication in pure Rust
https://iceoryx.io
Apache License 2.0
444 stars 22 forks source link

Port 'SignalMechanism' from 'Semaphore' to POSIX 'ConditionVariable' where possible #209

Open elBoberido opened 1 month ago

elBoberido commented 1 month ago

Brief feature description

The Semaphore supports only CLOCK_REALTIME, which has issues when the system time is changed. The POSIX ConditionVariable has an attribute to specify the clock and also accepts CLOCK_MONOTONIC.

On Systems that support POSIX condition variables, those should be used with the CLOCK_MONOTONIC instead of the Semaphore in combination with the AdaptiveWait.