![]() |
EM-ODP 4.4.0
Event Machine on ODP
|
#include <stdio.h>#include <odp_api.h>#include <event_machine.h>#include "em_core_types.h"#include "em_internal_event_types.h"

Go to the source code of this file.
Functions | |
| em_status_t | core_map_init (core_map_t *const core_map) |
| em_status_t | core_map_init_local (core_map_t *const core_map, const em_conf_local_t *conf_local) |
| em_status_t | core_map_init_extthr (core_map_t *const core_map) |
| void | i_event__term_thread_req (const internal_event_t *i_ev) |
| int | core_map_term_local (core_map_t *const core_map, em_escope_t escope) |
| int | core_map_term_extthr (core_map_t *const core_map, em_escope_t escope) |
| void | mask_em2odp__rwlocked (const em_core_mask_t *const core_mask, odp_thrmask_t *const odp_thrmask) |
| void | mask_em2odp (const em_core_mask_t *const em_core_mask, odp_thrmask_t *const odp_thrmask) |
| int | read_proc_cpuid (FILE *proc_tid_stat_file) |
| Get the CPU ID from the /proc/[tid]/stat file. | |
EM internal core-related functions
Definition in file em_core.h.
| em_status_t core_map_init | ( | core_map_t *const | core_map | ) |
| em_status_t core_map_init_extthr | ( | core_map_t *const | core_map | ) |
| em_status_t core_map_init_local | ( | core_map_t *const | core_map, |
| const em_conf_local_t * | conf_local | ||
| ) |
| int core_map_term_extthr | ( | core_map_t *const | core_map, |
| em_escope_t | escope | ||
| ) |
| int core_map_term_local | ( | core_map_t *const | core_map, |
| em_escope_t | escope | ||
| ) |
| void i_event__term_thread_req | ( | const internal_event_t * | i_ev | ) |
EM internal event handler (see em_internal_event.c&h) Handle the internal event notifying the EM-cores about a thread termination (internal event id: TERM_THREAD_REQ).
| void mask_em2odp | ( | const em_core_mask_t *const | em_core_mask, |
| odp_thrmask_t *const | odp_thrmask | ||
| ) |
| void mask_em2odp__rwlocked | ( | const em_core_mask_t *const | core_mask, |
| odp_thrmask_t *const | odp_thrmask | ||
| ) |
| int read_proc_cpuid | ( | FILE * | proc_tid_stat_file | ) |
Get the CPU ID from the /proc/[tid]/stat file.
This function reads the CPU ID from the specified file, which is expected to be in the format of /proc/[tid]/stat. The CPU ID is the 39th field in the file and indicates the CPU number the thread was last executed on.
| proc_tid_stat_file | A file pointer to the /proc/[tid]/stat file. |