INtime SDK Help
ResumeRtThread
INtime SDK v6 > About INtime > INtime Kernel > Threads > ResumeRtThread

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
);

Parameters

hThread
Handle for the thread which is to be resumed.

Return Values

TRUE
Success.
FALSE
Failure. To determine the status, call GetLastRtError.

Status

E_OK 0x0000
No exceptional conditions occurred.
E_CONTEXT 0x0005
hThread specifies an interrupt thread.
E_EXIST 0x0006
You used an invalid value for hThread.
E_TYPE 0x8002
hThread requires an RT handle for a thread.

Requirements

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