Skip to content

Commit

Permalink
asyncresourcegatherer: clarify callback thread safety
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Feb 26, 2024
1 parent 582e8c8 commit b8966fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/AsyncResourceGatherer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit b8966fe

Please sign in to comment.