Remove old P and V semaphore function and moved tests
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user