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:
Rémi Rativel
2023-04-18 12:13:56 +02:00
parent ec2f50f7d3
commit 35b2949243
3 changed files with 43 additions and 2 deletions

View File

@@ -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