# objpool
Thread-safe generic object pool
[](https://travis-ci.org/btmorex/objpool) [](https://coveralls.io/github/btmorex/objpool?branch=master)
* [Documentation](https://btmorex.github.io/objpool/objpool/index.html)
## Examples
```rust
use objpool::PoolBuilder;
use std::thread;
for _ in 0..10 {
let pool = pool.clone();
handles.push(thread::spawn(move || {
for _ in 0..1000 {
*pool.get() += 1;
}
}));
}
for handle in handles {
handle.join().unwrap();
}
assert_eq!(*pool.get() + *pool.get() + *pool.get() + *pool.get() + *pool.get(), 10000);
```