Table of Contents
qthread_distance - returns the distance between shepherds
#include
<qthread.h>
int
qthread_distance (const qthread_shepherd_id_t src, const qthread_shepherd_id_t
dest);
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.
This
function either returns the distance between the two specified shepherds,
or returns QTHREAD_BADARGS if a shepherd identifier is invalid.
qthread_retloc(3)
,
qthread_stackleft(3)
, qthread_id(3)
Table of Contents