Helper Reference Manual  1.7.1
odph_thread_common_param_t Struct Reference

Common parameters for odph_thread_create() call. More...

#include <threads.h>

Data Fields

odp_instance_t instance
 ODP instance handle. More...
 
const odp_cpumask_t * cpumask
 CPU mask for thread pinning.
 
int thread_model
 Select between Linux pthreads and processes. More...
 
int sync
 Synchronized thread creation. More...
 
uint64_t sync_timeout
 Synchronized thread creation timeout in nanoseconds. More...
 
int share_param
 Thread parameter sharing. More...
 

Detailed Description

Common parameters for odph_thread_create() call.

Definition at line 131 of file threads.h.

Field Documentation

◆ instance

odp_instance_t odph_thread_common_param_t::instance

ODP instance handle.

This is used for all threads, instead of 'instance' field of per thread parameters (odph_thread_param_t).

Definition at line 138 of file threads.h.

◆ thread_model

int odph_thread_common_param_t::thread_model

Select between Linux pthreads and processes.

0: Use pthreads 1: Use processes

Default value is 0.

Definition at line 153 of file threads.h.

◆ sync

int odph_thread_common_param_t::sync

Synchronized thread creation.

0: Don't synchronize thread creation 1: Create threads in series so that the next thread is created only after the previous thread have signaled that it has passed ODP local initialization.

Default value is 0.

Definition at line 165 of file threads.h.

◆ sync_timeout

uint64_t odph_thread_common_param_t::sync_timeout

Synchronized thread creation timeout in nanoseconds.

When synchronized thread creation has been requested, waiting for the synchronization signal times out once the time indicated by this parameter has passed.

If this parameter is 0, the default value is used.

Default value is ODP_TIME_SEC_IN_NS.

Definition at line 178 of file threads.h.

◆ share_param

int odph_thread_common_param_t::share_param

Thread parameter sharing.

0: Thread parameters are not shared. The thread parameter table contains 'num' elements. 1: The thread parameter table contains a single element, which is used for creating all 'num' threads.

Default value is 0.

Definition at line 190 of file threads.h.


The documentation for this struct was generated from the following file: