All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
as_cpu.h File Reference
#include <pthread.h>
+ Include dependency graph for as_cpu.h:

Go to the source code of this file.

Functions

static int as_cpu_assign_thread (pthread_t thread, int cpu_id)
 
static int as_cpu_assign_thread_attr (pthread_attr_t *attr, int cpu_id)
 

Function Documentation

static int as_cpu_assign_thread ( pthread_t  thread,
int  cpu_id 
)
inlinestatic

Assign a running thread to a specific cpu core.

Definition at line 65 of file as_cpu.h.

static int as_cpu_assign_thread_attr ( pthread_attr_t *  attr,
int  cpu_id 
)
inlinestatic

Assign a thread attribute to a specific cpu core.

Definition at line 43 of file as_cpu.h.