[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] rtl pthread bug ?? (was unwelcome reboot)
On Fri, 6 Oct 2000 bionic@vassalboro.bu.edu wrote:
> I think you've unnecessarily dereferenced the name of you thread code.
>
> In create_daq_thread, you have>>
> ret +=
> pthread_create(..., &thread_code, ...);
> What I think you want is>>
> ret +=
> pthread_create(..., thread_code, ...);
In case of functions &thread_code and thread_code are the same pointers to
the function (special case - since thread_code does not have sense without
brackets, it is assumed to be &thread_code)
--
Tomek