MSVC supplied with VS2022 generates "warning C4189: 'CALIBRATION_THRESHOLD': local variable is initialized but not referenced" which is treated as an error. Circumvent it by moving constexpr variable directly into body of lambda function.
b01aa72
Caused worker_thread to be stuck in Stage1Completed state until job's destruction.
review fixes