fix Gid passing issue to status thread

This commit is contained in:
bunnie 2021-01-20 14:57:40 +08:00
parent 53713baaa6
commit 9252455795
2 changed files with 4 additions and 2 deletions

View file

@ -159,7 +159,7 @@ fn xmain() -> ! {
canvases = recompute_canvases(canvases, Rectangle::new(Point::new(0, 0), screensize));
// make a thread to manage the status bar
xous::create_thread_simple(status_thread, chatlayout.status).expect("GAM: couldn't create status thread");
xous::create_thread_simple(status_thread, chatlayout.status.gid()).expect("GAM: couldn't create status thread");
let mut last_time: u64 = ticktimer_server::elapsed_ms(ticktimer_conn).unwrap();
info!("GAM: entering main loop");

View file

@ -7,7 +7,9 @@ use graphics_server::*;
use core::fmt::Write;
use core::convert::TryFrom;
pub fn status_thread(status_gid: Gid) {
pub fn status_thread(canvas_gid: [u32; 4]) {
let status_gid: Gid = Gid::new(canvas_gid);
info!("GAM|status: registering GAM|status thread");
let status_sid = xous_names::register_name(xous::names::SERVER_NAME_STATUS).expect("GAM|status: can't register server");