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 eba57ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/AsyncResourceGatherer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ 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.
void (*callback)(void*) = nullptr;
void* callbackData = nullptr;
};
Expand Down

0 comments on commit eba57ab

Please sign in to comment.