On Wed, 24 Jan 2001, Dirk Pohl [EIT] wrote:
> Can I use Objects which were created by a Linux program in my
> RT-Threads? Or does the Linux program get swapped sometimes so that the
> realtime cannot be guaranteed?
Not exactly. A very limited set of functions are accessible to real-time
threads. This means that most objects created in user space will include
commands that the real-time threads can't handle, so even if the
rt-threads could find the object, they'd crash the system.
What you can do though, is define some object(s) that _can_ be used by a
real-time linux thread. Then include the source code for that object in
both the user space code and the rtl space code. The first time you
instantiate the object in both user and rtl space, map it to a shared
memory buffer. Then both processes share the object, as you desired.
Look up 'mbuff' for details.
-Chuck
> The RTLinux example in examples/cpp doesn't really answer that since
> there, the Objects are created by the realtime module and not by a normal
> Linux program.
>
> Hope that was not too specific ...
> Thanks for any help, hints, etc. in advance
>
> Dirk Pohl
> University of Kaiserslautern
>
>
>
> -- [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/
>
-- [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/