Skip to content

Commit

Permalink
crnlib: no need to set default g_number_of_processors to default
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Jul 21, 2024
1 parent 461ff37 commit 0e2e553
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crnlib/crn_threading_pthreads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ void crn_threading_init() {
g_number_of_processors = math::maximum<int>(1, sysconf(_SC_NPROCESSORS_ONLN));
#elif defined(__GNUC__)
g_number_of_processors = math::maximum<int>(1, get_nprocs());
#else
g_number_of_processors = 1;
#endif
g_number_of_processors = math::minimum<int>(g_number_of_processors, task_pool::cMaxThreads);
}
Expand Down

0 comments on commit 0e2e553

Please sign in to comment.