Thread queue has been converted to C++.