hello everyone!

I hope I am not getting on your nerves too much yet...

A general question, I've been trying to think of a good solution for
this by myself - I'm afraid I came up with nothing...

What I need to do is set up a hrt task that executes a function given to
it - I cannot hard-code the task-body, as I do not know beforehand what
a certain task will have to do.
(I need this for a softplc that has to setup a watchdog and a
communications task, and then execute different controlling tasks)

So, I tried with rtai-lxrt (copying from the threads-example), with
something like    ((void(*)(void*))pFunction)(pArgument);   as a task
body, but I don't know if this can work at all.
(pFunction is a pointer to the function to be executed by the task)

Can it be done like this? (at the moment, the program stops execution
after returning from rt_task_init(), it never gets to the task body)

Is it better to use a module, and if so, can the module execute a
function it only has a pointer to? 

I know these may be stupid questions, I am just beginning to understand
all this, so please be patient with me...
Any pointers to useful examples or information appreciated.
cu
        Daniel

-- 
[EMAIL PROTECTED]
Student of Communication Engineering/Computer Networking
Furtwangen University of Applied Sciences
-- [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