Return to thrd_current.c CVS log | Up to [DVB] / dietlibc / lib |
attempt to implement more current thread primitives
#include <sys/tls.h> #include <threads.h> thrd_t thrd_current(void) { tcbhead_t* x=__get_cur_tcb(); if (x->multiple_threads==0) return NULL; return (thrd_t)(x+1); }