YIELD(3)
MTTL-ULT LIBRARY (C)
YIELD(3)
NAME
yield - yield current thread

SYNOPSIS
#include <mpcxx.h>

void yield(void);

DESCRIPTION
The yield() function yields the current thread. This means that the current thread is temporarily suspended and the next eligible-to-run thread in a scheduling queue will be scheduled. If there is no eligible-to-run thread then this function has no effect.

When a thread calls yield(), the communication network is polled, and if there are one or more messages, then the received message(s) are processed. Thus, yield() must be called in a busy loop waiting for some particular message(s).

SEE ALSO
MPC++ Multi-Threaded Template Library

$Id: yield.html,v 1.2 2002/02/27 12:39:35 liu Exp $