Sfoglia il codice sorgente

Add functions

master
Noelle 4 anni fa
parent
commit
be682e952e
1 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 9
    1
      src/lib.rs

+ 9
- 1
src/lib.rs Vedi 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…
Annulla
Salva