mirror of
https://github.com/Pithikos/C-Thread-Pool
synced 2024-11-22 13:41:18 +03:00
Detach() solves memleaks
This commit is contained in:
parent
31fa978cd3
commit
2a70d4ddf8
11
README.md
11
README.md
@ -131,14 +131,3 @@ DESCRIPTION
|
||||
Example:
|
||||
thpool_destroy(threadpool_p); //threadpool_p being a pointer to a thpool_t
|
||||
````
|
||||
|
||||
|
||||
Known issues
|
||||
========================================================================
|
||||
|
||||
**pthread is leaking on thpool_destroy**
|
||||
|
||||
The reason this occurs is that pthread_exit doesn't handle memory deallocation.
|
||||
One has to use pthread_join but that adds a huge amount of complexity. As long
|
||||
as you don't allocate and destroy thread pools all the time, you shouldn't be worried.
|
||||
Afterall that would beat the purpose of having a thread pool in the first place.
|
||||
|
Loading…
Reference in New Issue
Block a user