Synch now public mod
This commit is contained in:
parent
a36e470ea1
commit
afce2c66c9
@ -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;
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user