forked from OSchip/llvm-project
Fix incorrect change during refactoring.
cxa_guard_abort should still broadcast on exit. llvm-svn: 357956
This commit is contained in:
parent
1724a179e7
commit
beefef6b4e
|
@ -215,7 +215,7 @@ _LIBCXXABI_FUNC_VIS void __cxa_guard_release(guard_type *raw_guard_object) {
|
||||||
}
|
}
|
||||||
|
|
||||||
_LIBCXXABI_FUNC_VIS void __cxa_guard_abort(guard_type *raw_guard_object) {
|
_LIBCXXABI_FUNC_VIS void __cxa_guard_abort(guard_type *raw_guard_object) {
|
||||||
GlobalMutexGuard gmutex("__cxa_guard_abort", OnRelease::UNLOCK);
|
GlobalMutexGuard gmutex("__cxa_guard_abort", OnRelease::UNLOCK_AND_BROADCAST);
|
||||||
GuardObject guard(raw_guard_object);
|
GuardObject guard(raw_guard_object);
|
||||||
guard.store(GuardValue::ZERO());
|
guard.store(GuardValue::ZERO());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue