e2rcore/interface/
i_threadpool.rs

1#[allow(non_camel_case_types)]
2pub trait i_threadpool {
3    fn spawn( & mut self ) -> bool;
4    fn terminate( & mut self ) -> bool;
5    fn withdraw( & mut self ) -> Option<u64>;
6    fn deposit( & mut self, handle: u64 ) -> bool;
7    fn query_total( & mut self ) -> u64;
8    fn query_available( & mut self ) -> u64;
9    fn query_unavailable( & mut self ) -> u64;
10}