diff options
| author | oldmud0 <oldmud0@users.noreply.github.com> | 2022-01-08 12:55:10 -0600 |
|---|---|---|
| committer | oldmud0 <oldmud0@users.noreply.github.com> | 2022-01-08 12:55:10 -0600 |
| commit | ba08ec0379fcbe3c62f1d209bd924de129d0f523 (patch) | |
| tree | 7a94b361c861e2fb2f257ae4301dd18dc38fdee0 /include | |
| parent | 3ec3d3a1217842ef72d8326b6803af70b3f3caa9 (diff) | |
Fix more race conditions in AOLayer loading
- Uninitialized exit_loop variable
- Previous load task should stop completely before starting new load task
Diffstat (limited to 'include')
| -rw-r--r-- | include/aolayer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/aolayer.h b/include/aolayer.h index 4d2629b..830dd69 100644 --- a/include/aolayer.h +++ b/include/aolayer.h @@ -148,7 +148,7 @@ private: // used in populate_vectors void load_next_frame(); - std::atomic_bool exit_loop; //awful solution but i'm not fucking using QThread + std::atomic_bool exit_loop = false; //awful solution but i'm not fucking using QThread QFuture<void> frame_loader; QMutex mutex; QWaitCondition frameAdded; |
