Ensure events::call_in_main_thread is thread-safe
This commit is contained in:
parent
7afe6adbee
commit
b70463b6ad
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue