diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-28 13:47:40 +0100 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2022-06-28 01:10:55 +0200 |
| commit | 38e4a144a1e6f399482eb586c1e0d5646fae9679 (patch) | |
| tree | 8079072946451c23e2a664f990234e6c76512297 /src/core/core_timing.h | |
| parent | 9cafb0d91266210dab2c72e484b493bceae1cb02 (diff) | |
Core: Protect each event from race conditions within it.
Diffstat (limited to 'src/core/core_timing.h')
| -rw-r--r-- | src/core/core_timing.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index 901bf532e..4fef6fcce 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h @@ -32,6 +32,7 @@ struct EventType { TimedCallback callback; /// A pointer to the name of the event. const std::string name; + mutable std::mutex guard; }; /** |
