Add more from the std

This commit is contained in:
2026-03-17 21:33:34 +01:00
parent 56ad115e58
commit 9958b23c89
32 changed files with 10515 additions and 6 deletions

13
crates/std/src/thread.rs Normal file
View File

@@ -0,0 +1,13 @@
pub use crate::sys::thread::*;
pub struct ThreadInit {
pub handle: Thread,
pub rust_start: Box<dyn FnOnce() + Send>,
}
impl ThreadInit {
/// Initialize the 'current thread' mechanism on this thread, returning the
/// Rust entry point.
pub fn init(self: Box<Self>) -> Box<dyn FnOnce() + Send> {
todo!()
}
}