locus_suspend


locus_suspend

Suspends the execution of a locus, preventing it from being scheduled.

Signature

Status locus_suspend(
	Capref	locus )

Arguments

Semantics

A locus resides in one of three states: running, ready, or suspended. A locus in the running state currently has control over the CPU. A locus in the ready state is waiting for its turn to gain control over the CPU. A locus in the suspended state cannot gain control of the CPU.

This call places the locus specified by locus in the suspended state such that it will no longer be scheduled. It does not matter what state the specified locus is in prior to the call.

Status

Fails if locus is an invalid capref.

Fails if locus is not a capref for a locus.

See Also

Loci