TutTsdKeyDestroy destroy a thread-specific data key
key
TSD key to destroy
TRUE
if key is successfully destroyed, FALSE
otherwise.
If TutTsdKeyDestroy fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TutTsdKeyDestroy releases all resources associated with key
.
Destroying a TSD key does not cause the cleanup function specified when the key was created to be called, and subsequent thread exits do not call the cleanup function either. TutTsdKeyDestroy is normally called only during process shutdown, after all threads other than the main thread have exited.
This example creates and then destroys a TSD key:
T_TSD_KEY my_tsd_key; if (!TutTsdKeyCreate(&my_tsd_key, T_NULL_FUNC)) {/* error */
} . . . if (!TutTsdKeyDestroy(my_tsd_key)) {/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |