[En-Nut-Discussion] How to get some comfort with threads?
Nathan Moore
nategoose at gmail.com
Wed Sep 2 22:46:54 CEST 2009
If the only time you need it is for thread creation then why not do the
following?
HANDLE myThreadCreate(const char * name, thread_f * tf, void * arg, int
stack_sz) { HANDLE th;
th = NutThreadCreate(name, tf, arg, stack_sz);
printf("Creating thread \"%s\" %s\n", name, th ? "succeeded" :
"failed");
return th;
}
or if you need the name at some later time then do what Adam Dybkowski said.
Nathan
More information about the En-Nut-Discussion
mailing list