英語 での Task exception の使用例とその 日本語 への翻訳
{-}
-
Colloquial
-
Ecclesiastic
-
Computer
-
Programming
Raise task exception by tk_ras_tex.
Both pendtex and texmask are bitarrays of the form 1<< task exception code.
Gets the task exception status. This is similar to tk_ref_tex().
A break function is calledonly once for one extended SVC handler per one task exception.
Processing of task exception code from 1 to(bit width of UINT data type)- 1:.
Introduction of service profile has made it possible to use the following features, which had been removed from μT-Kernel before, within the restrictions described by the profile: acquiring of the following information about slice time(slicetime),disabled wait factors(waitmask), task exception(texmask), and task event(tskevent).
For example, task exception code can take the value from 0 to 15 in 16-bit environment.
For more details, see the Section called Task Exception Handling Functions in the Chapter called T-Kernel/OS Functions.
TK_SUPPORT_TASKEXCEPTION Task exception information(texmask) can be acquired.
If a task exception is raised for the task thatcalled tk_cln_ssy during cleanup function execution, the task exception is held until the cleanup function completes its processing.
For more details, see the Section called Task Exception Handling Functions in the Chapter called μT-Kernel/OS Functions.
If a task exception is raised during completion waiting by tk_wai_dev(), the request in reqid is aborted and processing is completed.
If enatex= FALSE and there are pending task exception, calling the new task exception handler is not allowed.
One task exception handler per task can be registered from an application.
If a quasi-task portion(extended SVC)is executing when a task exception is raised, a break function corresponding to that extended SVC is called.
Only one task exception handler can be defined per task; if one is already defined, the last-defined handler is valid.
In order to achieve efficient implementation on 16-bit CPU,the number of task exception codes has been reduced from 32 to one that will fit into the bit width of UINT data type.
A raised task exception is indicated in pendtex from the time the task exception is raised until its task exception handler is called.
Even if there are pending task exceptions, the task exception handler is in terminated status.
If a task exception is raised for the task that called tk_evt_ssy,during the execution of event handling function, the task exception is held until the event handling function completes its processing.
When a task reverts to DORMANT state, the task exception handler definition is canceled and task exceptions are disabled.
In this case, a task exception handler is called without restoring the stack, giving rise to possible stack overflow.
When tk_end_tex(TRUE) is called and there are pending task exceptions,another task exception handler call is made immediately following tk_end_tex.
In the case of a task exception handler, the high-level language support routine is supplied as source code and is to be embedded in the user program.
If the task is running in any other portion when a task exception is raised, the task exception handler is started only after the control returns to the task portion.
The task states in a task exception handler, except for those states concerning task exceptions, are the same as the states when running an ordinary task portion; and the same set of system calls are available. A task exception handler can be started only when the target task is running in a task portion.
Execution of the task exception handler takes place in the same context as the interrupted task. .
If there are pending task exceptions, the highest-priority task exception code among them is passed in the return code.