Erwin Rol wrote:
>
> Hey Pierre,
>
> A small explanation what i am trying. Basicly it is just changing the
> threads example in the lxrt directory to C++, and that worked OK. But i
> found some dificulties. The c++ object i have in pthreads in
> threadlocal data so i can
> get the current C++ object of the current running thread. With the
> RT_TASK threads in user space i use the pointer of the C++ object as the
> RT_TASK name,
> which works (even if it isn'T prety). To get the current C++ object i
> now need the current RT_TASK :-)
>
> I can't find the rt_buddy() function you talk about, is that function
> available in version 1.5 ? When i understand correct from the
> rtai_lxrt.h file the following code should give me the RT_TASK pointer
> of the callings userspaces proxy/buddy ?
>
> rtai_lxrt(SRQ_NARG (RT_BUDDY), &arg).v[0]
Yes but get RTAI-1.5. BTW the next release comes with C++ support at the
rt_mem_mgr level (i.e. new and delete) together with a nice C++ example
showing how to compile C++ kernel modules.
--
--------------------------
- Poseidon Controls Inc. -
- Phone: (450)-659-9186 -
- Fax: (450)-659-0014 -
-- [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/