mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
services: shellchat: use create_thread_0
This replaces create_thread_simple() which is deprecated. Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
d3879d36ac
commit
006101835e
1 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@ use xous::{String, MessageEnvelope, Message, ScalarMessage};
|
|||
|
||||
use core::sync::atomic::{AtomicBool, Ordering};
|
||||
static CB_RUN: AtomicBool = AtomicBool::new(false);
|
||||
pub fn callback_thread(_: u32) {
|
||||
pub fn callback_thread() {
|
||||
let ticktimer_conn = xous::connect(xous::SID::from_bytes(b"ticktimer-server").unwrap()).unwrap();
|
||||
let callback_conn = xous_names::request_connection_blocking(xous::names::SERVER_NAME_SHELLCHAT).unwrap();
|
||||
|
||||
|
|
@ -29,7 +29,7 @@ pub struct CallBack {
|
|||
}
|
||||
impl CallBack {
|
||||
pub fn new() -> Self {
|
||||
xous::create_thread_simple(callback_thread, 0).expect("SHCH: couldn't create callback generator thread");
|
||||
xous::create_thread_0(callback_thread).expect("SHCH: couldn't create callback generator thread");
|
||||
CallBack {
|
||||
state: 0,
|
||||
callbacks: 0
|
||||
|
|
@ -59,4 +59,4 @@ impl<'a> ShellCmdApi<'a> for CallBack {
|
|||
Ok(Some(ret))
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue