CTexasAPI::TryLockObject
TryLockObject prevents any callback from being called during the period that the object is locked.
unsigned int TryLockObject( void* objectID );
Parameters
| objectID | This object reference value. |
Return Values
If TryLockObject returns -1, then the object is not registered. If it returns 0 then the object has been locked, and if this method return 1 then the object has been locked but some thing else
Remarks
Example Use
while(server.TryLockObject(myObject) == 1) Sleep(0); server.ReleaseObject(myObject);

