Tobias Klotz wrote:
> 
> Hello,
> 
> I have a problem concerning the use of rtf_put using it like this:
> 
> my_mem=new whatever;
> rtf_put (FIFO, my_mem, sizeof(whatever))
> delete whatever;
> 
> if i leave out the delete line everything works fine, but it is not that
> smart to allocate memory in a realtime loop called every 5 ms without
> freeing it again...
> 
> my question is wether the call of rtf_put is blocking or nonblocking (if
> it is nonblocking i can understand why this call can crash, otherways i
> am a little confused...
> 

Hi Tobias,

>From the RT side, the calls are non-blocking.  When you do an rtf_put,
your data is copied (upto the limit of the free space) to the fifo
buffer before you are returned.  If there is sufficient space, you
should be okay.  How is the delete function implemented ?? maybe this is
the cause of your problems.

Regards, Stuart.


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