TryLockObject
TryLockObject prevents any callback from being called during the period that the object is locked.
unsigned int TryLockObject(
void* objectID
);
Parameters
| objectID |
This obejct 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
Copyright © 2007, Ekky Software Pty Ltd.