Skip to content

Commit

Permalink
fix: unlock exclusive file locks properly
Browse files Browse the repository at this point in the history
  • Loading branch information
vmx authored and cryptonemo committed Feb 16, 2021
1 parent 1769678 commit 057ebb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gpu/locks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ impl GPULock {
}
impl Drop for GPULock {
fn drop(&mut self) {
self.0.unlock().unwrap();
debug!("GPU lock released!");
}
}
Expand Down Expand Up @@ -69,6 +70,7 @@ impl PriorityLock {
}
impl Drop for PriorityLock {
fn drop(&mut self) {
self.0.unlock().unwrap();
debug!("Priority lock released!");
}
}
Expand Down

0 comments on commit 057ebb6

Please sign in to comment.