enum uth_priority_t { HI_PRI=0, LO_PRI, IDLE_PRI }; // --| typedefs |-- typedef void (func_t)( void ); // function ptr typedef typedef int uth_tid_t; // --| inerface prototypes |-- void uth_exit( int ); void uth_init( int N, int TickSz, int Debug=1 ); int uth_create( uth_tid_t *Thr, uth_priority_t Pri, func_t *Thr, void *Arg ); int uth_join( uth_tid_t Tid, int *Result ); uth_tid_t uth_self( void ); int uth_sleep( int Msec ); int uth_usage( uth_tid_t Tid ); void uth_wakeup( void ); void uth_yield( void );