mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-03-01 17:28:00 +00:00
Fix a race condition in AutoCriticalSection.
CID=104232 Review URL: https://breakpad.appspot.com/398002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@972 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
1208a8e369
commit
5f4fd97781
|
@ -63,8 +63,8 @@ class AutoCriticalSection {
|
||||||
// the critical seciton has been entered already.
|
// the critical seciton has been entered already.
|
||||||
void Release() {
|
void Release() {
|
||||||
assert(taken_);
|
assert(taken_);
|
||||||
LeaveCriticalSection(cs_);
|
|
||||||
taken_ = false;
|
taken_ = false;
|
||||||
|
LeaveCriticalSection(cs_);
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue