EM-ODP  3.7.0
Event Machine on ODP
em_init.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  startup_pool_conf_t
 
struct  opt_t
 

Functions

em_status_t input_poll_check (const em_core_mask_t *logic_mask, const em_conf_t *conf)
 
em_status_t output_drain_check (const em_core_mask_t *logic_mask, const em_conf_t *conf)
 
em_status_t input_poll_init_local (void)
 
em_status_t output_drain_init_local (void)
 
void core_log_fn_set (em_log_func_t func)
 
void core_vlog_fn_set (em_vlog_func_t func)
 
em_status_t init_ext_thread (void)
 
em_status_t sync_api_init_local (void)
 

Detailed Description

EM internal initialization types & definitions

Definition in file em_init.h.

Function Documentation

◆ core_log_fn_set()

void core_log_fn_set ( em_log_func_t  func)

Set EM core local log function.

Called by EM-core (= process, thread or bare metal core) when a different log function than EM internal log is needed.

Definition at line 76 of file em_init.c.

◆ core_vlog_fn_set()

void core_vlog_fn_set ( em_vlog_func_t  func)

Set EM core local log function with va_list.

Called by EM-core (= process, thread or bare metal core) when a different log function than EM internal log is needed.

Definition at line 83 of file em_init.c.

◆ init_ext_thread()

em_status_t init_ext_thread ( void  )

Initialize a thread external to EM.

This function makes sure that EM shared memory has been setup properly before an EM external thread is created.

Must be called once by non EM core which wants to access EM shared memory or use EM APIs.

Returns
EM_OK if successful.

Definition at line 90 of file em_init.c.