diff --git a/include/fastrtps/utils/TimedMutex.hpp b/include/fastrtps/utils/TimedMutex.hpp index d5b15dcde02..f412bb3270b 100644 --- a/include/fastrtps/utils/TimedMutex.hpp +++ b/include/fastrtps/utils/TimedMutex.hpp @@ -70,7 +70,7 @@ class TimedMutex bool try_lock_for( const std::chrono::duration& rel_time) { - return try_lock_until(chrono::steady_clock::now() + rel_time); + return try_lock_until(std::chrono::steady_clock::now() + rel_time); } template @@ -139,7 +139,7 @@ class RecursiveTimedMutex bool try_lock_for( const std::chrono::duration& rel_time) { - return try_lock_until(chrono::steady_clock::now() + rel_time); + return try_lock_until(std::chrono::steady_clock::now() + rel_time); } template