NAME

src/pmc/parrotthread.pmc - Represents a Parrot Thread.

DESCRIPTION

This type represents a parrot thread.

It provides the following methods: - join - detach - kill - pid

Methods

void init()
Create a new, invalid handle to a running thread.
void init_pmc(PMC *notused)
Create a new, invalid handle to a running thread.
INTVAL get_integer()
Return the thread ID of this thread.
METHOD run(closure)
Join the thread, returning whatever its main method returns.
METHOD join()
Join the thread, returning whatever its main method returns.
METHOD detach()
Detach the thread so it cannot be joined and will free its resources immediately when it exits.
METHOD kill()
Terminate a running thread.