NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | ERRORS | RESTRICTIONS | ATTRIBUTES | SEE ALSO
#include <exec/chExec.h>int threadDelete(KnCap *actorcap, KnThreadLid threadli);
threadDelete deletes the thread the local identifier of which is threadli in the actor the capability of which is given by actorcap.
If actorcap is K_MYACTOR, the deleted thread must belong to the current actor.
In this case, if threadli is K_MYSELF, the current thread is deleted.
Upon successful completion, a value of 0 is returned. Otherwise, a negative error code is returned.
actorcap is an inconsistent actor capability, or threadli is not a valid thread identifier in the specified actor.
actorcap does not specify a reachable actor.
Some of the provided data are outside the current actor's address space.
The thread is already in the process of being deleted.
The target actor and the current actor must be located on the same site.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | ERRORS | RESTRICTIONS | ATTRIBUTES | SEE ALSO