Jump to content

FSH_YIELD

From EDM2
Revision as of 17:22, 12 February 2020 by Ak120 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function provides the mechanism for relinquishing the processor to higher priority threads.

Syntax

FSH_YIELD(void)

Parameters

None.

Returns

There are no error returns.

Calling Sequence

void far pascal FSH_YIELD(void)

Remarks

FSDs run under the 2 mS dispatch latency imposed on the OS/2 kernel, meaning that no more than 2 mS can be spent in an FSD without an explicit block or yield. FSH_YIELD will test to see if another thread is runable at the current thread's priority or at a higher priority. If one exists, that thread will be given a chance to run.