Merge branch 'FireFox317-deadlock-windows-fix'

Merges #7861
This commit is contained in:
Andrew Kelley 2021-01-24 12:22:51 -07:00
commit b56e916fa1
2 changed files with 4 additions and 2 deletions

View File

@ -103,8 +103,10 @@ pub const Node = struct {
}
parent.completeOne();
} else {
const held = self.context.update_lock.acquire();
defer held.release();
self.context.done = true;
self.context.refresh();
self.context.refreshWithHeldLock();
}
}

View File

@ -299,6 +299,6 @@ pub extern "kernel32" fn SleepConditionVariableSRW(
f: ULONG,
) callconv(WINAPI) BOOL;
pub extern "kernel32" fn TryAcquireSRWLockExclusive(s: *SRWLOCK) callconv(WINAPI) BOOL;
pub extern "kernel32" fn TryAcquireSRWLockExclusive(s: *SRWLOCK) callconv(WINAPI) BOOLEAN;
pub extern "kernel32" fn AcquireSRWLockExclusive(s: *SRWLOCK) callconv(WINAPI) void;
pub extern "kernel32" fn ReleaseSRWLockExclusive(s: *SRWLOCK) callconv(WINAPI) void;