mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-01-28 15:26:34 +00:00
Update components/salsa-2022/src/storage.rs
This commit is contained in:
parent
f1a775c355
commit
ce4b041048
1 changed files with 2 additions and 0 deletions
|
@ -176,6 +176,8 @@ where
|
||||||
DB: HasJars,
|
DB: HasJars,
|
||||||
{
|
{
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
|
// Drop the Arc reference before the cvar is notified,
|
||||||
|
// since other threads are sleeping, waiting for it to reach 1.
|
||||||
drop(self.shared.jars.take());
|
drop(self.shared.jars.take());
|
||||||
self.shared.cvar.notify_all();
|
self.shared.cvar.notify_all();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue