mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-20 09:03:28 +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};
|
use core::sync::atomic::{AtomicBool, Ordering};
|
||||||
static CB_RUN: AtomicBool = AtomicBool::new(false);
|
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 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();
|
let callback_conn = xous_names::request_connection_blocking(xous::names::SERVER_NAME_SHELLCHAT).unwrap();
|
||||||
|
|
||||||
|
|
@ -29,7 +29,7 @@ pub struct CallBack {
|
||||||
}
|
}
|
||||||
impl CallBack {
|
impl CallBack {
|
||||||
pub fn new() -> Self {
|
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 {
|
CallBack {
|
||||||
state: 0,
|
state: 0,
|
||||||
callbacks: 0
|
callbacks: 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue