From eba57ab3e096fea4bee7ed26610c8579c807a64e Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 26 Feb 2024 18:26:49 +0000 Subject: [PATCH] asyncresourcegatherer: clarify callback thread safety --- src/renderer/AsyncResourceGatherer.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/AsyncResourceGatherer.hpp b/src/renderer/AsyncResourceGatherer.hpp index 50c8d991..150d788f 100644 --- a/src/renderer/AsyncResourceGatherer.hpp +++ b/src/renderer/AsyncResourceGatherer.hpp @@ -38,7 +38,8 @@ class CAsyncResourceGatherer { std::unordered_map props; - // optional + // optional. Callbacks will be dispatched from the main thread, + // so wayland/gl calls are OK. void (*callback)(void*) = nullptr; void* callbackData = nullptr; };