Training
×

Process Status System Calls

SynchronizeRtLoader notifies the loading thread that initialization has finished.
SetRtProcessMaxPriority: this call adjusts the maximum (numerically lowest) priority of the containing process. It does not affect the actual priority of the calling thread or any other thread in the process.
GetRtThreadHandles: returns one handle according to the selection:
THIS_THREAD     current thread's handle
THIS_PROCESS     handle of the current process
ROOT_PROCESS     root process handle
ExitRtProcess deletes the current process, all its threads, and all objects created by the threads. During deletion, borrowed resources are returned to the process’s parent and all interrupt levels associated with interrupt threads owned by the process get reset. This function is called implicitly when the main thread of a process returns.
Note: This call does NOT clear up any C library resources. It is preferred that the C library exit() call be made in order to exit an INtime process. Exit() will void possible memory leaks in the root process.
WaitForRtProcess – as well as WaitForRtProcessEx - waits for termination and exit code of the loaded process. The *EX version is designed for processes that have been created in state "suspended" and started by StartRtProcess.