HRCPP-6 Multithread support