mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Thread pools are long-lasting executors that have close to zero overhead when launching new jobs. This is advantageous over creating new threads as we can use this for threading smalling jobs and smaller quanta. It also avoids the heuristics needed to determine the optimal number of threads to spawn
7 lines
214 B
CMake
7 lines
214 B
CMake
add_library( thread-pool INTERFACE )
|
|
|
|
target_include_directories( thread-pool INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} )
|
|
|
|
target_sources( thread-pool INTERFACE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/bs_thread_pool.hpp
|
|
) |