feat(event loop): global frame counter
This commit is contained in:
@@ -6,9 +6,12 @@ use mio::unix::pipe;
|
|||||||
use mio::{Events, Interest, Poll, Token};
|
use mio::{Events, Interest, Poll, Token};
|
||||||
use slab::Slab;
|
use slab::Slab;
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
use std::sync::atomic::AtomicU64;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::thread::{self, JoinHandle};
|
use std::thread::{self, JoinHandle};
|
||||||
|
|
||||||
|
pub static FRAME: AtomicU64 = AtomicU64::new(0);
|
||||||
|
|
||||||
pub struct EventLoop {
|
pub struct EventLoop {
|
||||||
pub socket_path: String,
|
pub socket_path: String,
|
||||||
join_handle: Option<JoinHandle<Result<()>>>,
|
join_handle: Option<JoinHandle<Result<()>>>,
|
||||||
|
|||||||
Reference in New Issue
Block a user