We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b4ed6 commit 9ded0a2Copy full SHA for 9ded0a2
extension/threadpool/threadpool.cpp
@@ -96,7 +96,11 @@ void ThreadPool::run(
96
// get_threadpool is not thread safe due to leak_corrupted_threadpool
97
// Make this part threadsafe: TODO(kimishpatel)
98
ThreadPool* get_threadpool() {
99
- ET_CHECK_MSG(cpuinfo_initialize(), "cpuinfo initialization failed");
+ if (!cpuinfo_initialize()) {
100
+ ET_LOG(Error, "cpuinfo initialization failed");
101
+ return nullptr; // NOLINT(facebook-hte-NullableReturn)
102
+ }
103
+
104
int num_threads = cpuinfo_get_processors_count();
105
/*
106
* For llvm-tsan, holding limit for the number of locks for a single thread
0 commit comments