NAME
src/pmc/task.pmc - A concurrent task
DESCRIPTION
Implements the basic task behavior for the concurrency scheduler.
Functions
void init()
Initialize a concurrency task object.
void init_pmc(PMC *data)
Initializes a new Task with a id
An type
A subtype
A priority
An status
A birthtime
The time at which this Task was inserted into the task list.
code
A interp
An interpreter in which to execute this task.PMC *clone()
Create a copy of the task,
resetting status,
ID,
and birthtime.
PMC *get_attr_str(STRING *name)
Gets the value of an attribute for this task.
void set_attr_str(STRING *name, PMC *value)
Sets the value of an attribute for this task.
INTVAL get_integer()
Retrieves the task ID for this task.
void set_integer_native(INTVAL value)
Sets the task ID of the task.
void set_number_native(FLOATVAL value)
Sets the birthtime of the task.
void set_string_native(STRING *value)
Sets the type of the task.
PMC *share_ro()
Set this PMC as shared.
void mark()
Mark any referenced strings and PMCs.
void visit(PMC *info)
This is used by freeze/thaw to visit the contents of the task.void freeze(PMC *info)
Used to archive the task.
void thaw(PMC *info)
Used to unarchive the task.
void thawfinish(PMC *info)
Called after the task has been thawed.
Hash
PMC with any or all of the keys:
Integer
representing the task's unique identifier.
String
representing the type of the task.
String
representing the subtype of the task.
(Used mostly by events and exceptions to identify appropriate handlers.)
Integer
representing the task's priority,
from 0 to 100.
String
representing the task's status,
one of created
,
invoked
,
inprocess
,
or completed
.
Sub
or descendant PMC related to this task.
*info
is the visit info,
(see include/parrot/pmc_freeze.h).
SEE ALSO
docs/pdds/pdd15_objects.pod.