h6. [[RTSupport]] h6(. » [[RTSupport SWI Calls|SWI Calls]] h6((. » RT_Yield h2. RT_Yield h5. (SWI &575C2) Sleep the current thread and force a test of all pollwords |_<^{width:4em}. Entry | | | R1 | pointer to pollword | |_<^{width:4em}. Exit | | | - | All registers are preserved | Interrupts * Interrupts are disabled * Fast interrupts are enabled Processor Mode * Processor is in SVC mode Re-entrancy * SWI is re-entrant h4. Use This SWI has two uses: firstly it enables code in real-time context to sleep, and secondly it enables the foreground process to force a test of all pollwords (for example if the foreground sets the pollword of a thread, this may be used to wake the thread rather than having to wait for the next interrupt). The pollword is usually insignificant for the foreground process, because by definition control returns to it when no pollwords are set; however, it may be useful if the foreground is currently set to a priority above that of a real-time routine. It is an error to make this call from interrupt context. While in real-time context, [[OS_UpCall 6]] is interpreted as a call to this SWI. ([[OS_UpCall 7]] is also intercepted if an attempt is made to remove a pollword being used by the real-time system.) h4. See also * [[RT_TimedYield]]