thread_pool

September 14, 2025 ยท View on GitHub

Shows how to use xtd::threading::thread_pool class.

Sources

  • src/thread_pool.cpp
  • CMakeLists.txt

Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run

Output

Main thread does some work, then sleeps.
Hello from the thread pool.
Main thread exits.

Contents

  1. 1Sources
  2. 2Build and run
  3. 3Output