Added sysinfo and included usage example

This commit is contained in:
Yiyao Yu 2021-04-17 15:38:15 -04:00
commit 25e0917fdd
4 changed files with 145 additions and 13 deletions

View file

@ -1,5 +1,9 @@
mod sysinfo;
use std::sync::{Arc, RwLock, RwLockReadGuard, RwLockWriteGuard};
pub use sysinfo::SystemObject;
pub struct Capture<T> {
value: Arc<RwLock<T>>,
}