34 #define EL_PROCESS_MAX_NUM 7
36 typedef void (*el_process)(
void*);
37 #define EL_PROCESS void
169 #ifdef EL_INCLUDE_LIB_INTERNAL_CONTEXT
171 #define EL_PROCESS_STACK_OFFSET 192
172 #define EL_PROCESS_STACK_SIZE 192
173 #define EL_PROCESS_DIM EL_PROCESS_MAX_NUM
175 extern el_mct el_process_mck;
176 extern el_bool el_is_in_process;
177 extern el_bool el_is_in_process_call;
178 extern el_index el_cmt_current_process_index;
179 extern el_uint16 el_process_overwatch;
181 void el_init_process();
182 void el_routine_process();
void el_process_resume(el_index process_idx)
finish the waiting period of a process immediately
void el_kill_process(el_index process_idx)
kill the process (the abnormal way to end a process)
void el_process_wait(el_time t_ms)
wait for a period of time
void el_process_wait_fraction(unsigned int num, unsigned int den)
wait for a period of time specified as a fraction
el_index el_launch_process(el_process func, void *arg)
execute a function in a process
el_index el_get_local_process_index()
get index of the process where this function is called
void el_process_cooperate()
Introduce an atomic wait so other processes can be executed.