INtime SDK Help
INtime SDK v7 > About INtime > INtime Kernel > Regions > ReleaseRtControl

Releases a region object for use by another thread.

BOOLEAN ReleaseRtControl(VOID);


If the thread is in control of more than one region, ReleaseRtControl releases control of the most recently accessed region. Once control is released, the OS enables the next thread in line to gain access to the released region.

If the calling thread has had its priority boosted through access to a region, its priority is restored only when it gives up control of the last region. It is not sufficient to give up control of the region that raised the priority, if the thread controls other regions.

Return Values

Failure. To determine the status, call GetLastRtError.


E_OK 0x0000
No exceptional conditions occurred.
E_CONTEXT 0x0005
The calling thread does not control a region.


Versions Defined in Include Link to
INtime 3.0 intime/rt/include/rtbase.h rt.h rt.lib

See Also

Region system calls, AcceptRtControl