EM-ODP  3.7.0
Event Machine on ODP
Core related

core (thread) specific APIs. More...

Functions

int em_core_id (void)
 
int em_core_count (void)
 

Detailed Description

core (thread) specific APIs.

Currently OpenEM enumerates cores (threads) within an EM instance as contiguous integers starting from 0. Numbers may or may not match those provided by underlying HW or operating system.

Function Documentation

◆ em_core_count()

int em_core_count ( void  )

The number of cores running within the same EM instance (sharing the EM state).

Returns
Number of EM cores (or HW threads).
See also
em_core_id()
Examples
bench_event.c.

Definition at line 40 of file event_machine_core.c.

◆ em_core_id()

int em_core_id ( void  )