[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] rtl pthread bug ?? (was unwelcome reboot)
Gentlemen,
I believe that a pointer is diferent than a pointer to a pointer...
Tom
-----Original Message-----
From: Tomasz Motylewski <motyl@stan.chemie.unibas.ch>
To: bionic@vassalboro.bu.edu <bionic@vassalboro.bu.edu>
Cc: Olaf Petzold <opetzold@wit.regiocom.net>; RTLinux mailing list
<rtl@rtlinux.org>
Date: Friday, October 06, 2000 3:05 AM
Subject: 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
>
>-- [rtl] ---
>To unsubscribe:
>echo "unsubscribe rtl" | mail majordomo@rtlinux.org OR
>echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
>---
>For more information on Real-Time Linux see:
>http://www.rtlinux.org/rtlinux/
>
>