Skip to content

Commit dbae094

Browse files
authored
[NFC] Use ifdef-else in threads.cpp (#6355)
1 parent 6a42941 commit dbae094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/support/threads.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ size_t ThreadPool::getNumCores() {
143143
// In an Emscripten build without pthreads support, avoid the overhead of
144144
// including support code for the below runtime checks.
145145
return 1;
146-
#endif
147-
146+
#else
148147
size_t num = std::max(1U, std::thread::hardware_concurrency());
149148
if (getenv("BINARYEN_CORES")) {
150149
num = std::stoi(getenv("BINARYEN_CORES"));
151150
}
152151
return num;
152+
#endif
153153
}
154154

155155
ThreadPool* ThreadPool::get() {

0 commit comments

Comments
 (0)