TipcSrvUnlock


Name

TipcSrvUnlock — release exclusive access to the connection to RTserver

Synopsis

T_BOOL TipcSrvUnlock() 

Arguments

None

Return Values

TRUE if the connection to RTserver was successfully unlocked, FALSE otherwise.

Diagnostics

If TipcSrvUnlock fails, it returns FALSE and sets the global SmartSockets error number to:

Description

TipcSrvUnlock unlocks all of the internal synchronization objects within the connection to RTserver.

Caution

Every call to TipcSrvLock must be balanced by a call to TipcSrvUnlock.

See Also

TipcConnUnlock, TipcSrvLock; see the TIBCO SmartSockets Utilities for information on TutRwMutexUnlock.

Examples

This example locks and unlocks the connection to RTserver:

if (!TipcSrvLock()) { 
  return;  /* error */ 
} 
 
/* At this point, several TipcSrv* functions could be called and there would be no risk of any other 
thread accessing the connection. The connection must be unlocked with TipcSrvUnlock when 
exclusive access is no longer needed. */ 
 
if (!TipcSrvUnlock()) { 
  return;  /* error */ 
} 

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