fix pthread_join failed in asan
This commit is contained in:
parent
30fb08200c
commit
65353931cf
5
deps/oblib/src/lib/thread/thread.cpp
vendored
5
deps/oblib/src/lib/thread/thread.cpp
vendored
@ -231,6 +231,11 @@ void Thread::destroy_stack()
|
||||
stack_addr_ = nullptr;
|
||||
pth_ = 0;
|
||||
}
|
||||
#else
|
||||
if (stack_addr_ != nullptr) {
|
||||
stack_addr_ = nullptr;
|
||||
pth_ = 0;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user