87 #define MT_STATE_READY 1
88 #define MT_STATE_RUNNING 2
89 #define MT_STATE_EXITED 5
134 void (*
function)(
void *data),
176 void mtarch_pstart(
void);
177 void mtarch_pstop(
void);
186 process_event_t *evptr;
187 process_data_t *dataptr;
223 void mt_start(
struct mt_thread *thread,
void (*
function)(
void *),
void *data);
239 void mt_exec(
struct mt_thread *thread);
269 void mt_stop(
struct mt_thread *thread);
void mtarch_init(void)
Initialize the architecture specific support functions for the multi-thread library.
void mtarch_yield(void)
Yield the processor.
void mtarch_remove(void)
Uninstall library and clean up.
void mtarch_start(struct mtarch_thread *thread, void(*function)(void *data), void *data)
Setup the stack frame for a thread that is being started.
void mt_start(struct mt_thread *thread, void(*function)(void *), void *data)
Starts a multithreading thread.
void mt_remove(void)
Uninstalls library and cleans up.
void mt_yield(void)
Voluntarily give up the processor.
void mt_init(void)
Initializes the multithreading library.
void mt_exec(struct mt_thread *thread)
Execute parts of a thread.
void mtarch_exec(struct mtarch_thread *thread)
Start executing a thread.
void mt_exit(void)
Exit a thread.
void mtarch_stop(struct mtarch_thread *thread)
Clean up the stack of a thread.
Copyright (c) 2014, Analog Devices, Inc.
void mt_stop(struct mt_thread *thread)
Stop a thread.