|
TAstaVoIPConnection.TryLock |
Top Previous Next |
|
Declaration function TryLock: Integer;
Description Try to lock connection. When the FindConnectionWithLock() function is used to gain access to a connection object, this is called to prevent it from being closed and deleted by the background threads. Note this is an internal function and it is not expected an application would use it. Returns 0 if the lock was not obtainable due to the connection being shut down, -1 if it was not available, and +1 if lock is obtained.
|