<nTaskID> START(<vTask>, [<vPar1>,,, <vParN>]) <vMsg> TASKGETMSG() <nTaskID> TASKID() <vMsg> TASKPEEKMSG() <lResult> TASKSENDMSG(<nReceiverID>, <vMsg>[, <lWait>]) NIL TASKSTART() NIL TASKSTOP()
START(<vTask>, [<vPar1>,,, <vParN>]) --> <nTaskID>
START() starts task in parallel mode and passes it some parameters <vPar1>,,, <vParN>.
<vTask> | Is the function name, or code block, or address of static function. |
<vPar1> | ...<vParN> Is are some parameters for task. |
Returns : | Returns numeric value - is the task identifier. |
See also : | TASKSTOP() TASKSTART() |
TASKGETMSG() --> <vMsg>
TASKGETMSG() gets message from task input queue and returns it. If no message available, waits forever.
Returns : | Returns var <vMsg>, what was sended from a TASKSENDMSG(). |
See also : | TASKSENDMSG() TASKPEEKMSG() |
TASKID() --> <nTaskID>
TASKID() returns current task identifier <nTaskID> as numeric value.
TASKPEEKMSG() --> <vMsg>
TASKPEEKMSG() gets message from task input queue and returns it. If no message available, immediatly returns NIL.
Returns : | Returns var <vMsg>, what was sended from a TASKSENDMSG(). |
See also : | TASKSENDMSG() TASKGETMSG() |
TASKSENDMSG(<nReceiverID>, <vMsg>[, <lWait>]) --> <lResult>
TASKSENDMSG() sends var <vMsg> to task with identifier <nReceiverID> and returns returns TRUE if operation successfully.
<nReceiverID> | NUMERIC, is the identifier of task receiver. |
<vMsg> | is the any type data - message to task. |
<lWait> | Logical, is TRUE if function must wait processed. |
Returns : | Returns logical value <lResult>, TRUE if message was delivered. |
See also : | TASKGETMSG() TASKPEEKMSG() |
TASKSTART() --> NIL
TASKSTART() resumes all tasks what was stopped of function TASKSTOP().
Returns : | Returns NIL. |
See also : | TASKSTOP() |
TASKSTOP() --> NIL
TASKSTOP() stopeds all tasks with the exclusion current task.
Returns : | Returns NIL. |
See also : | TASKSTART() |