Core: CoWork: Workaround for sanitizer bug

git-svn-id: svn://ultimatepp.org/upp/trunk@13502 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-07-19 21:50:15 +00:00
parent b92b70807d
commit d93f2f362c
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ void CoWork::Pool::DoJob(MJob& job)
}
lock.Leave();
std::exception_ptr exc;
std::exception_ptr exc = nullptr;
try {
if(looper)
work->looper_fn();

View file

@ -57,7 +57,7 @@ public:
Link<MJob, 2> jobs; // global stack and CoWork stack as double-linked lists
int todo;
bool canceled;
std::exception_ptr exc;
std::exception_ptr exc = nullptr; // workaround for sanitizer bug(?)
Function<void ()> looper_fn;
int looper_count;