feat(event loop): global frame counter

This commit is contained in:
Nova
2022-07-02 14:14:37 -04:00
parent e45c415080
commit 3cce8477c5

View File

@@ -6,9 +6,12 @@ use mio::unix::pipe;
use mio::{Events, Interest, Poll, Token};
use slab::Slab;
use std::io::Write;
use std::sync::atomic::AtomicU64;
use std::sync::Arc;
use std::thread::{self, JoinHandle};
pub static FRAME: AtomicU64 = AtomicU64::new(0);
pub struct EventLoop {
pub socket_path: String,
join_handle: Option<JoinHandle<Result<()>>>,