Skip to content

Commit 0cea48f

Browse files
committed
Update threadpool.cpp
1 parent 7b49ad8 commit 0cea48f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

extension/threadpool/threadpool.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ ThreadPool* get_threadpool() {
128128
auto result = cpuinfo_get_processors_count();
129129
#else
130130
// Set threads equal to the number of performance cores.
131-
auto result =
132-
::executorch::extension::cpuinfo::get_num_performant_cores();
131+
auto result = ::executorch::extension::cpuinfo::get_num_performant_cores();
133132
#endif
134133

135134
/*
@@ -140,7 +139,7 @@ ThreadPool* get_threadpool() {
140139
* tricky to detect if we are running under tsan, for now capping the
141140
* default threadcount to the tsan limit unconditionally.
142141
*/
143-
constexpr int tsan_thread_limit = 63;
142+
constexpr unsigned int tsan_thread_limit = 63;
144143
return std::min(result, tsan_thread_limit);
145144
})();
146145

0 commit comments

Comments
 (0)