TutCondDestroy destroy a condition variable
cond
condition variable to destroy
TRUE
if condition variable was successfully destroyed, FALSE
otherwise.
If TutCondDestroy fails, it returns FALSE
and sets the global SmartSockets error number to one of:
TutCondDestroy destroys a condition variable. All operating system resources associated with the condition variable are released.
Destroying a condition variable that other threads (in the same process) are waiting on has undefined results.
This example creates and then destroys a condition variable:
T_COND cond; cond = TutCondCreate(); if (T_INVALID_COND == cond) {/* error */
} ... if (!TutCondDestroy(cond)) {/* error */
}
TIBCO SmartSockets™ Utilities Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |