> > delay = jiffies + BIG_NUMBER_HERE;
> > while ((long)(jiffies-delay) < 0);
> > 
> 
> while(shm_put_sensorLUT(slut) != 0 || (long)(jiffies-delay) < 0);
> 
> but how can I proof the sucess ? The loop above is running on timeout
> (long)(jiffies-delay) < 0) or hm_put_sensorLUT(slut) returns zero, but I have
> no way to determine, which was the "break" condition because I have do to some
> things on timeout (err msg and so on).


delay = jiffies + BIG_NUMBER_HERE;
while((retval=shm_put_sensorLUT(slut)) != 0 || (long)(jiffies-delay) < 0);
if (retval!=0) {
        // Aieeeee!
}


Gabor
-- [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/

Reply via email to