Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
yhirose committed Jan 14, 2020
1 parent f6db199 commit b557ac9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
#ifndef CPPHTTPLIB_THREAD_POOL_COUNT
// if hardware_concurrency() outputs 0 we still wants to use threads for this.
// -1 because we have one thread already in the main function.
#define CPPHTTPLIB_THREAD_POOL_COUNT std::thread::hardware_concurrency() ? std::thread::hardware_concurrency()-1 : 2
#define CPPHTTPLIB_THREAD_POOL_COUNT \
(std::thread::hardware_concurrency() \
? std::thread::hardware_concurrency() - 1 \
: 2)
#endif

/*
Expand Down

1 comment on commit b557ac9

@stupedama
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe remove the -1 ? I don't think its needed and if hardware_concurrency would return 1 you will get 0 threads ?

Please sign in to comment.