Skip to content

Commit

Permalink
Ensure events::call_in_main_thread is thread-safe
Browse files Browse the repository at this point in the history
(cherry-picked from commit b70463b)
  • Loading branch information
Vultraz committed Oct 7, 2018
1 parent a5e447a commit 58880c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/events.cpp
Expand Up @@ -53,7 +53,7 @@ struct invoked_function_data
const std::function<void(void)>& f;

/** Whether execution in the main thread is complete. */
bool finished = false;
std::atomic_bool finished = false;

/** Stores any exception thrown during the execution of @ref f. */
std::exception_ptr thrown_exception;
Expand Down

0 comments on commit 58880c8

Please sign in to comment.