31 #define THREAD_WAIT_FOREVER 0
32 #define THREAD_DEFAULT_TIMEOUT 1000
33 #define THREAD_DEFAULT_NAME "Initial-thread"
37 #ifndef _THREAD_PRIVATE_H_
43 #define DISPLAY_FLAG 0x00
44 #define RX_ONLY_FLAG 0x01
45 #define TX_ONLY_FLAG 0x02
46 #define RXTX_FLAG (RX_ONLY_FLAG | TX_ONLY_FLAG)
48 typedef union thread_cfg {
127 CNDP_API
int thread_wait(
int tid,
unsigned int checks,
unsigned int usec);
CNDP_API thd_t thread_get(int tidx)
CNDP_API const char * thread_name(int tidx)
CNDP_API int thread_set_private(int tidx, void *priv_)
CNDP_API int thread_create(const char *name, thd_func_t func, void *arg)
CNDP_API int thread_wait_all(unsigned int checks, unsigned int usec, int skip)
CNDP_API int thread_running(int tidx)
CNDP_API int thread_set_affinity(int cpu)
CNDP_API void * thread_get_private(int tidx)
CNDP_API int thread_unregister(int tidx)
CNDP_API void thread_dump(FILE *f)
CNDP_API int thread_stop_running(int tidx)
void(* thd_func_t)(void *)
CNDP_API int thread_wait(int tid, unsigned int checks, unsigned int usec)
CNDP_API int thread_register(const char *name, uint64_t pid)
CNDP_API int thread_id(void)