implemented lock_release in thread_manager.rs, for this, I derived the clone function for lock in synch.rs and list in list.rs
This commit is contained in:
@@ -34,6 +34,7 @@ impl Semaphore {
|
||||
/// counter of 1
|
||||
/// It's used for critical parts
|
||||
#[derive(PartialEq)]
|
||||
#[derive(Clone)]
|
||||
pub struct Lock {
|
||||
|
||||
/// Thread owning the lock
|
||||
|
||||
Reference in New Issue
Block a user