From ea825ed56d61a77ca61e6e5aef8166af5697eedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matheus=20C=2E=20Fran=C3=A7a?= Date: Tue, 26 Nov 2024 11:07:39 -0300 Subject: [PATCH] missing `try_lock` ref.: https://github.com/chriskohlhoff/asio/commit/13a6d87706df135cf60134a0d639d80a343aa028 Signed-off-by: Matheus Catarino --- asio/include/asio/detail/null_mutex.hpp | 6 ++++++ 1 file changed, 6 insertions(+) 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() {