asyncresourcegatherer: clarify callback thread safety

This commit is contained in:
Vaxry 2024-02-26 18:26:49 +00:00
parent 582e8c86b4
commit b8966fe05f
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ class CAsyncResourceGatherer {
std::unordered_map<std::string, std::any> props; std::unordered_map<std::string, std::any> props;
// optional // optional. Callbacks will be dispatched from the main thread,
// so wayland/gl calls are OK.
// will fire once the resource is fully loaded and ready.
void (*callback)(void*) = nullptr; void (*callback)(void*) = nullptr;
void* callbackData = nullptr; void* callbackData = nullptr;
}; };