1
0
Fork 0
forked from wry/wry

all: use tracy for tracing

This commit is contained in:
Julian Orth 2024-09-15 18:08:54 +02:00
parent 50186e764e
commit ccad3cf0fb
56 changed files with 647 additions and 171 deletions

View file

@ -72,7 +72,11 @@ impl ExtIdleNotifierV1RequestHandler for ExtIdleNotifierV1 {
});
track!(self.client, notification);
self.client.add_client_obj(&notification)?;
let future = self.client.state.eng.spawn(run(notification.clone()));
let future = self
.client
.state
.eng
.spawn("idle notifier", run(notification.clone()));
notification.task.set(Some(future));
Ok(())
}

View file

@ -270,7 +270,7 @@ impl WlSeatGlobal {
});
slf.pointer_cursor.set_owner(slf.clone());
let seat = slf.clone();
let future = state.eng.spawn(async move {
let future = state.eng.spawn("seat handler", async move {
loop {
seat.tree_changed.triggered().await;
seat.state.tree_changed_sent.set(false);