Core: Protect each event from race conditions within it.
This commit is contained in:
parent
9cafb0d912
commit
38e4a144a1
2 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ struct EventType {
|
|||
TimedCallback callback;
|
||||
/// A pointer to the name of the event.
|
||||
const std::string name;
|
||||
mutable std::mutex guard;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue