[En-Nut-Discussion] Per thread global variables

Bernard Fouché bernard.fouche at kuantic.com
Wed Oct 19 10:22:25 CEST 2005


Ole Reinhardt wrote:

>
> You could put the variables in one struct and malloc the heap for this 
> struct in the first lines of code of your thread. Pass the pointer to 
> this struct to every function that uses these variables.
>
That's exactly what I wanted to avoid but if there are no services to do 
that I think that there is no other solution. What about having a void * 
pointer in _NUTTHREADINFO ? So one can get access to 
runningThread->UserData ?

Regards,

  Bernard



More information about the En-Nut-Discussion mailing list