BRL-CAD
parallel.h File Reference

Go to the source code of this file.

Functions

int parallel_set_affinity (int cpu)
 
void thread_set_cpu (int cpu)
 
int thread_get_cpu (void)
 

Function Documentation

int parallel_set_affinity ( int  cpu)

Set affinity mask of current thread to the CPU set it is currently running on. If it is not running on any CPUs in the set, it is migrated to CPU 0 by default.

Return: 0 on Suceess -1 on Failure

Definition at line 56 of file affinity.c.

References bu_avail_cpus(), and FALSE.

Here is the call graph for this function:

void thread_set_cpu ( int  cpu)

Definition at line 108 of file thread.cpp.

int thread_get_cpu ( void  )

Definition at line 115 of file thread.cpp.

Referenced by bu_parallel_id().