It is my understanding that real-time FIFO operations are *atomic*. This
means that *nothing* regarding the FIFO being written to (or read) can
interrupt the process of writing to (or reading from) that FIFO. AFAIK this
does not mean that nothing else can happen in the system, only that
operations on that FIFO are atomic.
In all cases like these, the surest answer to the problem can be found by
reading the code.
Norm
> -----Original Message-----
> From: Pablo Alvarez [SMTP:[EMAIL PROTECTED]]
> Sent: Sunday, November 25, 2001 11:25 PM
> To: [EMAIL PROTECTED]
> Subject: [rtl] fifo writes
>
> Hi all,
>
> If I write a block of data into a fifo from userspace, am I guaranteed
> that
> the whole block will be written before that process is interrupted and my
> realtime thread tries to read from the fifo? The block is relatively small
>
> (< 100 bytes) but it does not seem like that should matter.
>
> The reason this matters is because I want to be sure that I read the data
> in blocks of the appropriate size and don't lose track of record
> boundaries.
>
> If the above is not guaranteed, what is the easiest way of making sure
> that
> I get all my data in blocks of the appropriate size?
>
> Thanks,
>
> Pablo Alvarez
>
> -------------------------------------------------------------------
> Pablo Alvarez, Ph.D. Phone: (617) 353-1423
> Laboratory for Cognitive Neurobiology Fax: (617) 353-1414
> Dept. of Psychology email: [EMAIL PROTECTED]
> Boston University
> 64 Cummington Street
> Boston, MA 02215, USA
> -------------------------------------------------------------------
>
> -- [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/
-- [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/