From 3aa49152b7f951ce9bbb4837e16273f14c3ce6db Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 23 Oct 2022 09:51:49 +0000 Subject: [PATCH] chore: mention setLogger lambda should be thread-safe --- include/TrueMQTT.h | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/include/TrueMQTT.h b/include/TrueMQTT.h index 7a97fab..f403ce5 100644 --- a/include/TrueMQTT.h +++ b/include/TrueMQTT.h @@ -152,6 +152,8 @@ namespace TrueMQTT * * @note This library doesn't contain a logger, so you need to provide one. * If this method is not called, no logging will be done. + * @note The logger callback can be called from several threads, so make sure + * the callback is thread-safe. */ void setLogger(LogLevel log_level, const std::function &logger) const; -- libgit2 0.21.4