Table of Contents

Name

qthread_distance - returns the distance between shepherds

Synopsis

#include <qthread.h>

int
qthread_distance (const qthread_shepherd_id_t src, const qthread_shepherd_id_t dest);

Description

This function returns the distance from the src shepherd to the memory of the dest shepherd. The distances are arbitrary, and may not exactly measure latency to memory, but do give an indication of relative distance. Shepherds that do not have a specific CPU affinity can be anywhere, and so the distance from or to such shepherds is considered 0.

Return Value

This function either returns the distance between the two specified shepherds, or returns QTHREAD_BADARGS if a shepherd identifier is invalid.

See Also

qthread_retloc(3) , qthread_stackleft(3) , qthread_id(3)


Table of Contents