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);

Also See

RemoteMethod, ReleaseObject
 

Contact Ekky Software

All around the world Ekky Software is contactable seven days of the week by submitting the following details.

Thank you for your time and interest.
Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript