Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations.
Apache License 2.0
7.09k
stars
2.25k
forks
source link
It's possible to construct a common::ThreadPool with zero workers #1785
It's possible to construct a ThreadPool with zero workers. If you then schedule anything, it will hang forever.
I'm happy to follow up with a PR, but would we prefer a
CHECK_GE(num_threads, 1)
or a call tostd::max
?