TutRwMutexDestroy


Name

TutRwMutexDestroy — destroy a multiple-reader/single-writer mutex

Synopsis

T_BOOL TutRwMutexDestroy(rw_mutex) 
T_RW_MUTEX rw_mutex; 

Arguments

rw_mutex — R/W mutex object to destroy

Return Values

TRUE if R/W mutex object was successfully destroyed, FALSE otherwise.

Diagnostics

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

Description

TutRwMutexDestroy destroys a R/W mutex object. All operating system resources associated with the R/W mutex are released.

Caution

Destroying a R/W mutex that other threads have locked or are waiting to lock has undefined results.

See Also

TutRwMutexCreate

Examples

This example destroys a R/W mutex:

T_RW_MUTEX rw_mutex; 
. 
. 
. 
if (!TutRwMutexDestroy(rw_mutex)) { 
  /* error */ 
} 

TIBCO SmartSockets™ Utilities
Software Release 6.8, July 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com