mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-12-22 05:19:48 +01:00
asyncresourcegatherer: clarify callback thread safety
This commit is contained in:
parent
582e8c86b4
commit
b8966fe05f
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue