ARGOBOTS  7496202f85916e93d6d143320764c2aba5026d93
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Structures | Functions | Variables
abtd_affinity.c File Reference
#include "abti.h"
#include <unistd.h>
Include dependency graph for abtd_affinity.c:

Go to the source code of this file.

Data Structures

struct  global_affinity
 

Functions

static int int_rem (int a, unsigned int b)
 
static ABTU_ret_err int get_num_cores (pthread_t native_thread, int *p_num_cores)
 
static ABTU_ret_err int read_cpuset (pthread_t native_thread, ABTD_affinity_cpuset *p_cpuset)
 
static ABTU_ret_err int apply_cpuset (pthread_t native_thread, const ABTD_affinity_cpuset *p_cpuset)
 

Variables

static global_affinity g_affinity
 

Function Documentation

static ABTU_ret_err int apply_cpuset ( pthread_t  native_thread,
const ABTD_affinity_cpuset *  p_cpuset 
)
static

Definition at line 248 of file abtd_affinity.c.

static ABTU_ret_err int get_num_cores ( pthread_t  native_thread,
int *  p_num_cores 
)
static

Definition at line 201 of file abtd_affinity.c.

static int int_rem ( int  a,
unsigned int  b 
)
inlinestatic

Definition at line 192 of file abtd_affinity.c.

Referenced by apply_cpuset().

static ABTU_ret_err int read_cpuset ( pthread_t  native_thread,
ABTD_affinity_cpuset *  p_cpuset 
)
static

Definition at line 222 of file abtd_affinity.c.

Variable Documentation

global_affinity g_affinity
static

Definition at line 190 of file abtd_affinity.c.