From e4b0a89eb03d0af86d4c13504f8dc551c4b5d55e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Ondru=C5=A1ek?= <427228+janondrusek@users.noreply.github.com> Date: Tue, 9 May 2023 22:38:02 -0700 Subject: [PATCH] Forward compatibility with boost interprocess 1.74+ (#3488) (cherry picked from commit 4b97144d359886822399db4838bede003a178b4a) --- src/cpp/utils/shared_memory/RobustInterprocessCondition.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/utils/shared_memory/RobustInterprocessCondition.hpp b/src/cpp/utils/shared_memory/RobustInterprocessCondition.hpp index eb2c5ae6e88..0a432b68de1 100644 --- a/src/cpp/utils/shared_memory/RobustInterprocessCondition.hpp +++ b/src/cpp/utils/shared_memory/RobustInterprocessCondition.hpp @@ -369,7 +369,7 @@ class RobustInterprocessCondition // timed_wait (infin) is used, instead wait, because wait on semaphores could throw when // BOOST_INTERPROCESS_ENABLE_TIMEOUT_WHEN_LOCKING is set. We don't want that for our condition_variables - semaphores_pool_[sem_index].sem.timed_wait(boost::posix_time::pos_infin); + semaphores_pool_[sem_index].sem.timed_wait(boost::posix_time::ptime(boost::posix_time::pos_infin)); } {