24 #include <sys/types.h>
39 void *(*start)(
void *);
64 int (*start)(
void *arg);
int odph_thread_create(odph_thread_t thread[], const odph_thread_common_param_t *param, const odph_thread_param_t thr_param[], int num)
Create and pin threads (as Linux pthreads or processes)
int odph_thread_join(odph_thread_t thread[], int num)
Wait previously launched threads to exit.
int odph_parse_options(int argc, char *argv[])
Parse linux helper options.
int odph_options(odph_helper_options_t *options)
Get linux helper options.
int odph_odpthread_setaffinity(const int cpu)
Set CPU affinity of the current odp thread.
int odph_thread_join_result(odph_thread_t thread[], odph_thread_join_result_t res[], int num)
Wait previously launched threads to exit.
void odph_thread_param_init(odph_thread_param_t *param)
Initialize thread params.
int odph_odpthread_getaffinity(void)
Get CPU affinity of the current odp thread.
void odph_thread_common_param_init(odph_thread_common_param_t *param)
Initialize thread common params.
ODP Linux helper for pthreads.
odp_mem_model_t mem_model
Process or thread.
Linux process state information.
int status
Process state change status.
Linux pthread state information.
odph_linux_thr_params_t thr_params
Copy of thread params.
pthread_attr_t attr
Pthread attributes.
pthread_t thread
Pthread ID.
Thread parameter for Linux pthreads and processes.
odp_thread_type_t thr_type
ODP thread type.
odp_instance_t instance
ODP instance handle.
void * arg
Argument for the function.
Common parameters for odph_thread_create() call.
int share_param
Thread parameter sharing.
const odp_cpumask_t * cpumask
CPU mask for thread pinning.
uint64_t sync_timeout
Synchronized thread creation timeout in nanoseconds.
int thread_model
Select between Linux pthreads and processes.
odp_instance_t instance
ODP instance handle.
int sync
Synchronized thread creation.
odp_bool_t is_sig
Exit caused by signal.
int ret
Exit status of the joined thread/process.
Thread parameters (pthreads and processes)
void * arg
Argument for the function.
uint64_t stack_size
Minimum stack size in bytes.
odp_thread_type_t thr_type
ODP thread type.
Helper internal thread start arguments.
odp_instance_t instance
ODP instance handle.
odph_thread_param_t thr_params
Thread parameters.
odp_mem_model_t mem_model
Process or thread.
odp_atomic_u32_t * init_status
Thread initialization status.
uint32_t status
Thread status.
Thread state information.
pthread_t thread_id
Pthread ID.
int status
Process state chge status.
pthread_attr_t attr
Pthread attributes.
uint8_t last
1: last table entry
odph_thread_start_args_t start_args
Start arguments.