Cicode Programming Reference > Cicode Function Categories > Task Functions Introduction > TaskSetSignal

TaskSetSignal

Manually applies a signal to a specified task.

Syntax

TaskSetSignal(Hnd, nSignal)

Hnd:

The task's handle. To retrieve this use the function TaskHnd().

nSignal:

Allows you to signal a specified task. Set to 0 (zero) for normal operation, 1 to stop the task or any other number that represents a defined signal.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

TaskGetSignal, TaskHnd, TaskKill, TaskSuspend, TaskNew, TaskResume

See Also

Task Functions