WIP
This commit is contained in:
parent
6a1fb18334
commit
2b883bf32e
1 changed files with 6 additions and 2 deletions
|
@ -46,13 +46,17 @@ pub struct AppCell {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl AppCell {
|
impl AppCell {
|
||||||
|
#[track_caller]
|
||||||
pub fn borrow(&self) -> AppRef {
|
pub fn borrow(&self) -> AppRef {
|
||||||
|
let thread_id = std::thread::current().id();
|
||||||
|
eprintln!("borrowed {thread_id:?}");
|
||||||
AppRef(self.app.borrow())
|
AppRef(self.app.borrow())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[track_caller]
|
||||||
pub fn borrow_mut(&self) -> AppRefMut {
|
pub fn borrow_mut(&self) -> AppRefMut {
|
||||||
// let thread_id = std::thread::current().id();
|
let thread_id = std::thread::current().id();
|
||||||
// dbg!("borrowed {thread_id:?}");
|
eprintln!("borrowed {thread_id:?}");
|
||||||
AppRefMut(self.app.borrow_mut())
|
AppRefMut(self.app.borrow_mut())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue