Decreases by one the suspension depth of the specified non-interrupt thread.
If the specified thread is suspended or asleep-suspended, its suspension depth should be at least 1.
If the suspension depth is still positive after the ResumeRtThread call, the thread state remains unchanged.
If the suspension depth goes to 0, the thread is placed in the ready state (if suspended) or the asleep state (if asleep-suspended).
Note: Never suspend a thread in a system call. Do not use threads to suspend another thread unless the state of the suspended thread is completely understood. This call can lead to deadlock.
BOOLEAN ResumeRtThread(
RTHANDLE hThread // handle for the thread to be resumed
);
hThread
TRUE
FALSE
E_OK 0x0000
E_CONTEXT 0x0005
hThread
specifies an interrupt thread.
E_EXIST 0x0006
hThread
.
E_TYPE 0x8002
hThread
requires an RT handle for a thread. Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |