EM-ODP
3.7.0
Event Machine on ODP
|
core (thread) specific APIs. More...
Functions | |
int | em_core_id (void) |
int | em_core_count (void) |
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.
int em_core_count | ( | void | ) |
The number of cores running within the same EM instance (sharing the EM state).
Definition at line 40 of file event_machine_core.c.
int em_core_id | ( | void | ) |
Logical core id.
Returns the logical id of the current core. EM enumerates cores (or HW threads) to start from 0 and be contiguous, i.e. valid core identifiers are 0...em_core_count()-1
Definition at line 34 of file event_machine_core.c.