Skip to content

0.6.0

Choose a tag to compare

@rioki rioki released this 26 Dec 19:47
· 22 commits to master since this release
17cbb4b

Added

  • added queue::emplace to prevent copy of large objects
  • added thread_pool::request_stop to allow sopting on a std::stop_token.
  • added configurable unhandled exception handing with

Changed

  • changed queue::pop, pop_wait and pop_wait_for return std::optional instead of taking a reference
  • changed constructor of thread_pool to accept any callable that a std::thread can take
  • started to use std::latch

Deprecated

  • the c9y latch is being deprecated in favor of std::latch
  • latch::wait_for is not part of std::latch any code relying on it will break soon

Removed

  • removed queue::wake and replaced it with queue::stop

Fixed

  • fixed the situation where queue::pop would unlock a thread and it would instantly need to wait on mutex::lock
  • sync_fun now actually uses arguments tag and thread