parrotcode: Represents a running Parrot Thread. | |
Contents | PMCs |
src/pmc/parrotrunningthread.pmc -- Represents a running Parrot Thread.
This type represents a running parrot thread.
It provides the following methods: - join - detach - kill
Note that a running thread object becomes invalid when a thread finishes while detached or joined. Further operations on the object may have unexpected behavior, such as manipulating an unrelated thread.
void init()
void init_pmc(PMC *tid)
tid
.INTVAL get_integer()
void set_integer_native(INTVAL new_tid)
new_tid
. VTABLE void set_integer_native(INTVAL new_tid) {
PMC_int_val(SELF) = new_tid;
}
/*
METHOD join()
METHOD detach()
METHOD kill()
|