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

@ -10,6 +10,7 @@ use std::ptr;
/// but everything has been tested with miri to assure there's no Undefined Behaviour (use-after-free, double free, etc.)
/// or memory leak
#[derive(PartialEq)]
#[derive(Clone)]
pub struct List<T: PartialEq> {
head: Link<T>,
tail: *mut Node<T>,