Loading...
Searching...
No Matches
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

◆ as_cpu_assign_thread()

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.

◆ as_cpu_assign_thread_attr()

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.