diff --git a/asio/include/asio/detail/null_mutex.hpp b/asio/include/asio/detail/null_mutex.hpp index 77e759473f..ccf3997d6a 100644 --- a/asio/include/asio/detail/null_mutex.hpp +++ b/asio/include/asio/detail/null_mutex.hpp @@ -41,6 +41,12 @@ class null_mutex { } + // Try to lock the mutex. + bool try_lock() + { + return true; + } + // Lock the mutex. void lock() {