MCPcopy Create free account
hub / github.com/PerroEngine/Perro / queue

Function queue

perro_source/api_modules/perro_steamworks/src/events.rs:8–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6use std::sync::{Mutex, OnceLock};
7
8fn queue() -> &'static Mutex<SteamEventQueue> {
9 static QUEUE: OnceLock<Mutex<SteamEventQueue>> = OnceLock::new();
10 QUEUE.get_or_init(|| Mutex::new(SteamEventQueue::new()))
11}
12
13pub(crate) fn push(event: SteamEvent) {
14 if let Ok(mut queue) = queue().lock() {

Callers 4

pushFunction · 0.70
poll_oneFunction · 0.70
drainFunction · 0.70
clearFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected