kos 0.1.0

The K-Scale Operating System
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * Defines the main control loop that runs in its own independent thread.
 */
use std::{
    sync::{Arc, RwLock},
    thread,
    time::Duration,
};

use crate::state::State;

pub fn run(_state: Arc<RwLock<State>>) {
    loop {
        println!("Running main control loop...");
        thread::sleep(Duration::from_millis(100));
    }
}