[CPU] Fix data race in concurrent compile_model calls (#17164)

This commit is contained in:
Egor Duplenskii 2023-04-25 02:01:03 +02:00 committed by GitHub
parent 00847cba7d
commit 8879ef53a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,7 @@ void set_cpu_used(const std::vector<int>& cpu_ids, const int used) {}
#else
static CPU cpu;
static thread_local CPU cpu;
# ifndef _WIN32
int get_number_of_cpu_cores(bool bigCoresOnly) {