Shows how to use xtd::threading::thread_pool class.
#include <xtd/threading/auto_reset_event>
#include <xtd/threading/thread_pool>
#include <xtd/console>
#include <xtd/date_time>
#include <xtd/random>
#include <xtd/startup>
namespace wait_handle_example {
class program {
public:
static void main() {
}
private:
static void thread_proc(
std::any state_info) {
}
};
}
startup_(wait_handle_example::program::main);