From 762071736886309e5e6e3e5e2798bfef524d8714 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Thu, 2 May 2024 11:14:47 +0200 Subject: [PATCH] drop `kubi-pool` --- Cargo.lock | 4 ---- Cargo.toml | 1 - README.md | 9 +++------ kubi-pool/Cargo.toml | 7 ------- kubi-pool/src/lib.rs | 33 --------------------------------- 5 files changed, 3 insertions(+), 51 deletions(-) delete mode 100644 kubi-pool/Cargo.toml delete mode 100644 kubi-pool/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index d207f43..850c4e7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1190,10 +1190,6 @@ dependencies = [ "log", ] -[[package]] -name = "kubi-pool" -version = "0.0.0" - [[package]] name = "kubi-server" version = "0.0.0" diff --git a/Cargo.toml b/Cargo.toml index caa0c27..d41d6d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,6 @@ members = [ "kubi-server", "kubi-shared", "kubi-logging", - "kubi-pool" ] default-members = ["kubi"] resolver = "2" diff --git a/README.md b/README.md index add1ce3..59faaca 100644 --- a/README.md +++ b/README.md @@ -118,15 +118,12 @@ name = "Kubi Server" # server name

"In-house" libraries

-- [`hui`](https://github.com/griffi-gh/hui): semi-imm.mode backend-agnostic ui system\ - mostly ready to use, it has already replaced the Kubi legacy ui -- [`kubi-ui-glium`](kubi-ui-glium) Glium-based backend for `kubi-ui` -- [`kubi-pool`](kubi-pool): very early work-in-progress work-stealing threadpool system\ - aiming to replace `rayon` threadpool that's currently used inside the kubi client (for more control over task priority) +- [`hui`, `hui-glium`, `hui-winit`](https://github.com/griffi-gh/hui): semi-imm.mode backend-agnostic ui system\ - [`kubi-logging`](kubi-logging) fancy-ass custom formatter for `env-logger` deprecated: -~~`kubi-udp`~~ was a huge pita to work with and eventually got replaced by `uflow` (https://github.com/lowquark/uflow) in #5 +- ~~`kubi-udp`~~ eventually got replaced by `uflow` (https://github.com/lowquark/uflow) in #5 +- ~~`kubi-pool`~~ decided there's no need to replace rayon for now
~ uwu
diff --git a/kubi-pool/Cargo.toml b/kubi-pool/Cargo.toml deleted file mode 100644 index 094c198..0000000 --- a/kubi-pool/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "kubi-pool" -version = "0.0.0" -edition = "2021" -publish = false - -[dependencies] diff --git a/kubi-pool/src/lib.rs b/kubi-pool/src/lib.rs deleted file mode 100644 index ae1e8c1..0000000 --- a/kubi-pool/src/lib.rs +++ /dev/null @@ -1,33 +0,0 @@ -use std::{thread::JoinHandle, collections::VecDeque}; - -pub struct KubiPool { - callback: fn(T) -> R, - threads: Vec>, -} - -struct Task { - priority: u8, - data: T, -} - -fn task_loop() { - let tasks = VecDeque::>::new(); - loop { - - }; -} - -impl KubiPool { - pub fn new(threads: usize, callback: fn(T) -> R) -> Self { - Self { - callback, - threads: (0..threads).map(|_| { - std::thread::spawn(move || task_loop::()) - }).collect(), - } - } - - pub fn resize(&mut self, threads: usize) { - - } -}