diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-31 09:56:19 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2020-07-31 09:56:19 -0400 |
| commit | 777229f28f8f5de19376459e85b434576af8e010 (patch) | |
| tree | 0f4e5bb10dddce18aa49c9f78c34a98e575b5b6c /src/envfs.h | |
| parent | 2eeaa0e31a0d74ccd7cada9e478db27263ce4532 (diff) | |
added startSafeThread() to get core dumps for threads other than the main thread
added terminate handler
Diffstat (limited to 'src/envfs.h')
| -rw-r--r-- | src/envfs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/envfs.h b/src/envfs.h index bbc27005..e4d98d71 100644 --- a/src/envfs.h +++ b/src/envfs.h @@ -1,6 +1,7 @@ #ifndef ENV_ENVFS_H #define ENV_ENVFS_H +#include "thread_utils.h" #include <thread> namespace env @@ -125,7 +126,7 @@ private: ThreadInfo() : busy(true), ready(false), stop(false) { - thread = std::thread([&]{ run(); }); + thread = MOShared::startSafeThread([&]{ run(); }); } ~ThreadInfo() |
