Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

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! ! !



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com