mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
remove an unnecessary xns registration
This commit is contained in:
parent
92c6a93147
commit
c36d0d4111
1 changed files with 2 additions and 5 deletions
|
|
@ -30,7 +30,6 @@ use std::sync::atomic::{AtomicBool, Ordering};
|
||||||
)]
|
)]
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
|
||||||
const SERVER_NAME_STATUS: &str = "_Status bar manager_";
|
|
||||||
const SERVER_NAME_STATUS_GID: &str = "_Status bar GID receiver_";
|
const SERVER_NAME_STATUS_GID: &str = "_Status bar GID receiver_";
|
||||||
|
|
||||||
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
||||||
|
|
@ -138,10 +137,8 @@ fn xmain() -> ! {
|
||||||
log::trace!("|status: my canvas {:?}", status_gid);
|
log::trace!("|status: my canvas {:?}", status_gid);
|
||||||
|
|
||||||
log::debug!("|status: registering GAM|status thread");
|
log::debug!("|status: registering GAM|status thread");
|
||||||
// we have one connection, from the status main loop; but we make it with a local call, not using xns. so there's 0 in xns.
|
|
||||||
let status_sid = xns
|
let status_sid = xous::create_server().unwrap(); // completely private to this crate
|
||||||
.register_name(SERVER_NAME_STATUS, Some(0))
|
|
||||||
.expect("|status: can't register server");
|
|
||||||
// create a connection for callback hooks
|
// create a connection for callback hooks
|
||||||
let cb_cid = xous::connect(status_sid).unwrap();
|
let cb_cid = xous::connect(status_sid).unwrap();
|
||||||
unsafe { CB_TO_MAIN_CONN = Some(cb_cid) };
|
unsafe { CB_TO_MAIN_CONN = Some(cb_cid) };
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue