MCPcopy Create free account
hub / github.com/Logicalshift/flo_draw / wake_by_ref

Method wake_by_ref

draw/src/glutin_runtime.rs:381–387  ·  view source on GitHub ↗
(arc_self: &Arc<Self>)

Source from the content-addressed store, hash-verified

379
380impl task::ArcWake for GlutinFutureWaker {
381 fn wake_by_ref(arc_self: &Arc<Self>) {
382 // If this is the first wake request for this waker...
383 if let Some(future_id) = arc_self.future_id.lock().unwrap().take() {
384 // Send a wake request to glutin
385 glutin_thread().send_event(GlutinThreadEvent::WakeFuture(future_id));
386 }
387 }
388}

Callers

nothing calls this directly

Calls 2

glutin_threadFunction · 0.85
send_eventMethod · 0.80

Tested by

no test coverage detected