Browse Source

Add functions

master
Noelle 4 years ago
parent
commit
be682e952e
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      src/lib.rs

+ 9
- 1
src/lib.rs View File

@@ -1,5 +1,13 @@
pub struct ThreadPool;

impl ThreadPool {
pub fn new(size: usize) -> ThreadPool {
assert!(size > 0);
ThreadPool
}

pub fn execute<F>(&self, f: F)
where F: FnOnce() + Send + 'static {

}
}

Loading…
Cancel
Save