libcgroup 0.3.0

libcgroup bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate libcgroup_sys as ffi;

use std::sync::{Once, ONCE_INIT};

static C_LIB_INITIALIZED: Once = ONCE_INIT;

pub fn init() {
    C_LIB_INITIALIZED.call_once(|| {
        unsafe {
            ffi::cgroup_init();
        }
    });
}