TutCondDestroy


Name

TutCondDestroy — destroy a condition variable

Synopsis

T_BOOL TutCondDestroy(cond) 
T_COND cond; 

Arguments

cond — condition variable to destroy

Return Values

TRUE if condition variable was successfully destroyed, FALSE otherwise.

Diagnostics

If TutCondDestroy fails, it returns FALSE and sets the global SmartSockets error number to one of:

Description

TutCondDestroy destroys a condition variable. All operating system resources associated with the condition variable are released.

Caution

Destroying a condition variable that other threads (in the same process) are waiting on has undefined results.

See Also

TutCondCreate

Examples

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