qthread_migrate_to - Man Page

relocate a qthread to the target shepherd

Synopsis

#include <qthread.h>

int
qthread_migrate_to (qthread_shepherd_id_t shepherd);

Description

This is the function for moving a qthread to a different shepherd.

The first argument, shepherd, is the identifier of the shepherd to move to.

When the call returns, the qthread will be running on the specified shepherd.

Return Value

On success, 0 is returned. On error, a non-zero error code is returned.

Errors

QTHREAD_BADARGS

Either the me value was invalid or the shepherd was too large.

See Also

qthread_fork_to(3)

Referenced By

qthread_fork(3), qthread_spawn(3).

APRIL 2011 libqthread