int
qthread_migrate_to(qthread_t * const me, qthread_shepherd_id_t shepherd);
The first argument, me, is the qthread_t pointer of the current qthread. If the me argument is NULL, the correct value will be discovered automatically (similar to using qthread_self()), but this lookup may be expensive. The second argument, shepherd, is the identifier of the shepherd to move to.
When the call returns, the qthread will be running on the specified shepherd.