Daniel Krippner wrote:
> 
>         hi there!
> 
> I searched docs and example code for several hours; but I am still
> looking for a few functions:
> I need something like   pthread_self(), that tells me which task is
> currently running
>                         pthread_exit(); can a lxrt hrt task call a usermode fnct 
>that ends
> the calling thread? Or is this done with rt_task_delete() also?
>                         is it possible to give an existing hrt task a new priority?
>                         how do i get the priority of an existing hrt task?
> 
> this may sound stupid, but I am new to all this - any pointers to
> documentation (besides the stuff that comes with rtai or on their web
> site) would be appreciated... ;-)
> cu
>         Daniel
> 

Steve's Posix has not been ported to LXRT yet. So if you call pthread
you are using those of Linux not of RTAI.

It can but before ending it you must return to soft real time. An hard
real time task does not mind about Linux priority. Once you made a Linux
process hard real time Linux does not know of it anymore, from that
point you must control it with RTAI APIs.

So to know who you are use rt_whoami(), there is no APIs for changing
priority. We usually do it ourselves directly. It is a bad way, we'll
add a function for that in 1.4.

Ciao, Paolo.
-- [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