diff --git a/ctru-rs/examples/futures-basic.rs b/ctru-rs/examples/futures-basic.rs index 0a21c93..0be84ad 100644 --- a/ctru-rs/examples/futures-basic.rs +++ b/ctru-rs/examples/futures-basic.rs @@ -30,7 +30,7 @@ fn main() { let (exit_sender, mut exit_receiver) = futures::channel::oneshot::channel(); let (mut timer_sender, mut timer_receiver) = futures::channel::mpsc::channel(0); let executor_thread = std::thread::Builder::new() - .ideal_processor(1) + .processor_id(1) .spawn(move || { let mut executor = futures::executor::LocalPool::new(); diff --git a/ctru-rs/examples/futures-tokio.rs b/ctru-rs/examples/futures-tokio.rs index 5ce7e15..9a85df9 100644 --- a/ctru-rs/examples/futures-tokio.rs +++ b/ctru-rs/examples/futures-tokio.rs @@ -30,7 +30,7 @@ fn main() { let runtime_thread = std::thread::Builder::new() // Run on the system core - .ideal_processor(1) + .processor_id(1) .spawn(move || { runtime.block_on(async move { let mut wake_time = tokio::time::Instant::now() + Duration::from_secs(1); diff --git a/ctru-rs/examples/thread-info.rs b/ctru-rs/examples/thread-info.rs index 958a888..d468935 100644 --- a/ctru-rs/examples/thread-info.rs +++ b/ctru-rs/examples/thread-info.rs @@ -25,7 +25,7 @@ fn main() { print_affinity_mask("main thread"); std::thread::Builder::new() - .ideal_processor(1) + .processor_id(1) .spawn(|| { print_processor("sys thread"); print_thread_id("sys thread"); diff --git a/ctru-rs/examples/thread-locals.rs b/ctru-rs/examples/thread-locals.rs index 4437a41..1a40401 100644 --- a/ctru-rs/examples/thread-locals.rs +++ b/ctru-rs/examples/thread-locals.rs @@ -32,7 +32,7 @@ fn main() { }); std::thread::Builder::new() - .ideal_processor(1) + .processor_id(1) .spawn(move || { MY_LOCAL.with(|local| { println!("Initial value on second thread: {}", local.borrow());