On Wed, May 03, 2000 at 07:26:51PM +0200, Alain Rolle wrote:
> Hi all,
>
> sorry but I have to bother you with an other question:
>
> I have a thread that is not periodic, and to which I assign no schedule
> param (NULL passed inst. of 'attr'). In the thread there is a while loop
> continuously testing a volatile variable ( code : 'while(my_wait);' )
> Why does the whole system hang in this while loop, and not just this
> thread? This is definitely not my intention.
What behavior do you want?
If you want
loop:
if(!my_wait) check again later and
let other things happen
You can make the task periodic and do
while(!my_wait)pthread_wait_np(pthread_self());
Is "my_wait" a variable or a hardware register?
>
> Thanks again,
> Alain.
>
>
>
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
--
---------------------------------------------------------
Victor Yodaiken
FSMLabs: www.fsmlabs.com www.rtlinux.com
FSMLabs is a servicemark and a service of
VJY Associates L.L.C, New Mexico.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/