Remove old P and V semaphore function and moved tests

This commit is contained in:
Quentin Legot
2023-04-12 15:22:22 +02:00
parent 21f3a72a3d
commit 752b70e448
3 changed files with 115 additions and 113 deletions

View File

@ -62,6 +62,7 @@ impl ObjAddr {
self.semaphores.remove(&id)
}
/// Remove the object of id **id** from self if it exists
pub fn remove_lock(&mut self, id:i32) -> Option<Lock> {
self.locks.remove(&id)
}