forked from Pithikos/C-Thread-Pool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add thread name, fix warning in the example
thread name is good for both profiling and debuging also htop can turn on the option 'Show custom thread names' in 'Display options' the warning in example is ‘pthread_self’ [-Wimplicit-function-declaration]
- Loading branch information
1 parent
ab2c0bb
commit 90c4561
Showing
2 changed files
with
6 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
* */ | ||
|
||
#include <stdio.h> | ||
#include <pthread.h> | ||
#include "thpool.h" | ||
|
||
|
||
|
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