task_self

Definition: integer current_task = task_self()
Description: Return the task id of the current task.
Comments: This value may be needed if a task wants to schedule or suspend itself.
Example:
-- schedule self
task_schedule(task_self(), {5.9, 6.0})
See Also: task_create, task_schedule, task_yield, task_suspend