Move yunq to new thread spawn and remove old one.
This commit is contained in:
parent
79e1ea2791
commit
d777b8f4ab
7 changed files with 33 additions and 76 deletions
|
|
@ -37,12 +37,6 @@ pub extern "C" fn main() -> z_err_t {
|
|||
let b = Box::new(1);
|
||||
debug!("Addrs: {:p} {:p}", a, b);
|
||||
|
||||
let e: thread::ThreadEntry = |_| {
|
||||
debug!("Testing 1 2 3");
|
||||
};
|
||||
let t = thread::Thread::spawn(e, core::ptr::null()).expect("Failed to spawn thread");
|
||||
t.join().expect("Failed to wait.");
|
||||
|
||||
let x = Box::new(|| 1);
|
||||
debug!("Addr: {:p}", x);
|
||||
debug!("Addr: {:p}", &x);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue