Receives ownership of a region object. Ownership occurs only if it ownership is immediately available.
If control is not immediately available, the thread does not wait at the region. Instead, it receives a condition code and remains ready. To gain control, the thread must make repeated calls to AcceptRtControl.
BOOLEAN AcceptRtControl(
RTHANDLE hRegion
);
hRegionIf access is not immediately available, the E_BUSY status code returns and the calling thread remains ready.
Threads that use regions cannot be deleted while they control the region. Once a thread controls a region, it should not suspend or delete itself. Doing so locks the region and prevents other threads from gaining access. Relinquish control by invoking ReleaseRtControl.
TRUEFALSEE_OK 0x0000E_BUSY 0x0003E_CONTEXT 0x0005E_EXIST 0x0006hRegion.E_TYPE 0x8002hRegion is not a region handle.| Versions | Defined in | Include | Link to |
|---|---|---|---|
| INtime 3.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |