Skip to content

Commit 7b16cb4

Browse files
committed
Update threadpool.cpp
1 parent 54598a9 commit 7b16cb4

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
@@ -126,8 +126,7 @@ ThreadPool* get_threadpool() {
126126
auto result = cpuinfo_get_processors_count();
127127
#else
128128
// Set threads equal to the number of performance cores.
129-
auto result =
130-
::executorch::extension::cpuinfo::get_num_performant_cores();
129+
auto result = ::executorch::extension::cpuinfo::get_num_performant_cores();
131130
#endif
132131

133132
/*
@@ -138,7 +137,7 @@ ThreadPool* get_threadpool() {
138137
* tricky to detect if we are running under tsan, for now capping the
139138
* default threadcount to the tsan limit unconditionally.
140139
*/
141-
constexpr int tsan_thread_limit = 63;
140+
constexpr unsigned int tsan_thread_limit = 63;
142141
return std::min(result, tsan_thread_limit);
143142
})();
144143

0 commit comments

Comments
 (0)