Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 238 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 238 Bytes

Thread pool

Thread pool implementation

utils::thread_pool tp(1);
bool runned = false;
auto future = tp.submit([&runned]() -> bool {
  runned = true;
  return true;
});
assert(future.get() == true);
assert(runned == true);