mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
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:
parent
b92b70807d
commit
d93f2f362c
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue