| parrotcode: A concurrent task | |
| Contents | PMCs |

src/pmc/task.pmc - A concurrent task

Implements the basic task behavior for the concurrency scheduler.

void init()void init_pmc(PMC *data)Hash PMC with any or all of the keys:idInteger representing the task's unique identifier.typeString representing the type of the task.subtypeString representing the subtype of the task.
(Used mostly by events and exceptions to identify appropriate handlers.)priorityInteger representing the task's priority,
from 0 to 100.statusString representing the task's status,
one of created,
invoked,
inprocess,
or completed.birthtimecodeSub or descendent PMC related to this task.interpPMC *clone()PMC *get_attr_str(STRING *name)void set_attr_str(STRING *name, PMC *value)INTVAL get_integer()void set_integer_native(INTVAL value)void set_number_native(FLOATVAL value)void set_string_native(STRING *value)PMC *share_ro()void destroy()void mark()void visit(visit_info *info)*info is the visit info,
(see include/parrot/pmc_freeze.h).void freeze(visit_info *info)void thaw(visit_info *info)void thawfinish(visit_info *info)
|
|
|