mirror of
https://git.suyu.dev/suyu/suyu
synced 2026-05-19 00:45:45 +00:00
Core: Protect each event from race conditions within it.
This commit is contained in:
@@ -32,6 +32,7 @@ struct EventType {
|
||||
TimedCallback callback;
|
||||
/// A pointer to the name of the event.
|
||||
const std::string name;
|
||||
mutable std::mutex guard;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user