1#include <ae2f/Sys/Thrd.h>
13 struct timespec req, rem;
22 printf(
"Thread child is starting\n");
29 printf(
"Thread child is ending\n");
34 register ae2f_eSysThrd_t ret_stat = 0;
35 ae2f_SysThrd ret_thrd0, ret_thrd1;
46 puts(
"Thread main is starting");
67 puts(
"Thread main has made a thread");
77 id_for_printf.m_id = (ret_thrd0)
.m_id;
80 "Thread main joined %p with retval %d\n"
92 id_for_printf.m_id = (ret_thrd1)
.m_id;
95 "Thread main joined %p with retval %d\n"
102 puts(
"Thread main is ending");
#define ae2f_static_cast(t, v)
static_cast for C++
#define ae2f_reinterpret_cast(t, v)
reinterpret_cast for C++
#define _ae2f_SysThrdJoin_imp(ret_stat, ret_rtn, ref_thrd)
#define _ae2f_SysThrdSleep_imp(ret_stat, prm_req, prm_rem)
#define _ae2f_SysThrdMk_imp(ret_stat, ret_thrd, prm_func, prm_arg, prm_stcksz_unused)
_ae2f_SysThrdRes_t ae2f_SysThrdRes_t
Return type for thread.
_ae2f_SysThrdPrm_t ae2f_SysThrdPrm_t
Parameters for thread.
_ae2f_SysThrdID_t ae2f_SysThrdID_t
Thread ID.