-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iiod: thread-pool: define HAS_PTHREAD_SETNAME_NP as 0 or 1
Instead of making HAS_PTHREAD_SETNAME_NP as a "pure" preprocessor define, make it defined with a value of 0 or 1 so that we can use it normal code and since it's a compile time constant, the compiler can get rid of dead code when it evaluates to 0. This change will also make it cleaner for adding support for naming pthreads. Signed-off-by: Nuno Sá <nuno.sa@analog.com>
- Loading branch information
Showing
2 changed files
with
3 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters