Add more from the std
This commit is contained in:
13
crates/std/src/thread.rs
Normal file
13
crates/std/src/thread.rs
Normal 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!()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user