Synch now public mod

This commit is contained in:
François Autin 2023-04-12 13:16:04 +02:00
parent a36e470ea1
commit afce2c66c9
No known key found for this signature in database
GPG Key ID: 343F5D382E1DD77C
2 changed files with 1 additions and 8 deletions

View File

@ -2,6 +2,6 @@ pub mod process;
pub mod thread; pub mod thread;
pub mod mgerror; pub mod mgerror;
pub mod system; pub mod system;
mod synch; pub mod synch;
mod thread_manager; mod thread_manager;
pub mod exception; pub mod exception;

View File

@ -1,5 +1,4 @@
use crate::utility::list::List; use crate::utility::list::List;
use crate::utility::objaddr::*;
use crate::kernel::thread::Thread; use crate::kernel::thread::Thread;
use crate::simulator::interrupt::InterruptStatus::InterruptOff; use crate::simulator::interrupt::InterruptStatus::InterruptOff;
use crate::simulator::machine::Machine; use crate::simulator::machine::Machine;
@ -17,8 +16,6 @@ pub struct Semaphore {
} }
impl SynchObj for Semaphore {}
impl Semaphore { impl Semaphore {
/// Initializes a semaphore, so that it can be used for synchronization. /// Initializes a semaphore, so that it can be used for synchronization.
@ -92,8 +89,6 @@ pub struct Lock{
} }
impl SynchObj for Lock {}
impl Lock { impl Lock {
/// Initialize a Lock, so that it can be used for synchronization. /// Initialize a Lock, so that it can be used for synchronization.
@ -198,8 +193,6 @@ pub struct Condition{
} }
impl SynchObj for Condition {}
impl Condition { impl Condition {
/// Initializes a Condition, so that it can be used for synchronization. /// Initializes a Condition, so that it can be used for synchronization.