diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-04-17 10:31:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-17 10:31:47 -0400 |
| commit | 855650215f5011082f6a3fa4dcfb69b040367911 (patch) | |
| tree | c744c49d7c62c1051c99a12b793377ae40113e1f /src/envfs.h | |
| parent | ff912b5f6199ade55a4eaff1c8e7eefb8145c970 (diff) | |
| parent | 21166f820bc793111ad40a950807dc84e961fad5 (diff) | |
Merge pull request #1054 from isanae/bunch-of-fixes
Bunch of fixes
Diffstat (limited to 'src/envfs.h')
| -rw-r--r-- | src/envfs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/envfs.h b/src/envfs.h index 8790b071..bbc27005 100644 --- a/src/envfs.h +++ b/src/envfs.h @@ -128,6 +128,15 @@ private: thread = std::thread([&]{ run(); }); } + ~ThreadInfo() + { + if (thread.joinable()) { + stop = true; + wakeup(); + thread.join(); + } + } + void wakeup() { { |
