asyncresourcegatherer: clarify callback thread safety

This commit is contained in:
Vaxry 2024-02-26 18:26:49 +00:00
parent 582e8c86b4
commit b8966fe05f

View file

@ -38,7 +38,9 @@ class CAsyncResourceGatherer {
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* callbackData = nullptr;
};