r3semaph
oops/r3semaph.h
r3oops
Semaphore Class
r3Root
R3CLID_ROOT
r3Semaphore
R3CLID_SEMAPHORE - 3
int R3RegisterSemaphoreClass(R3APP *app);
R3SEMM_OBTAIN
OBTAIN
R3SEMM_OBTAIN
R3INT, see access types below
obj.OBTAIN(p3);
Obtain semaphore. If semaphore is obtained, call return immediately. If not, the thread is put to sleep.
R3SEMM_ATTEMPT
ATTEMPT
R3SEMM_ATTEMPT
R3BOOL, FALSE if semaphore cannot be locked by us
R3INT, see access types below
rc = obj.ATTEMPT(p3);
Attemp to lock semaphore. If cannot be locked, call return immediately with FALSE return value. Otherwise the semaphore is locked and TRUE is returned.
R3SEMM_RELEASE
RELEASE
R3SEMM_RELEASE
obj.RELEASE();
Release semaphore locked using ATTEMP or OBTAIN methods
Access types