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:id
Integer
representing the task's unique identifier.type
String
representing the type of the task.subtype
String
representing the subtype of the task.
(Used mostly by events and exceptions to identify appropriate handlers.)priority
Integer
representing the task's priority,
from 0 to 100.status
String
representing the task's status,
one of created
,
invoked
,
inprocess
,
or completed
.birthtime
code
Sub
or descendent PMC related to this task.interp
PMC *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)
|