|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Pthread_key problems Pthread_key_t create when using pthread_key_create function, which includes a destructor function. My question is this destructtor when enforced?
Pthread_key_delete function is not necessarily being deployed, the destructor function will be deployed. Call pthread_key_delete But if I do not, then there will always be the key?
For instance, I gave in pthread_key_create a key malloc memory and destructor which free (). But subsequently deployed pthread_key_delete, does this memory will never be released, causing memory leakage! ! !
Thank you this! ! ! |
| |