Skip to content

Fix potential data race on `spin_count_` NonBlockingThreadPool member variable

Reference merge request

!1791 (merged)

What does this implement/fix?

There is a data race on spin_count_ member variable in NonBlockingThreadPool.h when there are multiple worker threads. This MR makes the variable const and initializes it in the class constructor.

Edited by William Kong

Merge request reports

Loading