Philippe Gerum wrote:
Jan Kiszka wrote:

Hi,

I was wondering if there is already a method in the fusion native skin to turn the main thread of a process into real-time. Did not find anything. I guess it would be easy to add such feature to librtai based on existing syscalls. Should I write a patch? Something like "rt_task_attach"?


Actually, you can already do this by calling the internal POSIX API extension: pthread_init_rt(), which is part of the system skin implicitely attached to a user-space RT app.


Then what about some redefinition for the native skin? Just to have the API streamlined.

While thinking about this functionality some time ago for the native RTAI skin, I must admit that I did not find obvious applications of it, this is why it's not there in the first place. But maybe I'm wrong. What's the compelling argument for having it?


Porting existing software which assumes that some magic calls exist to make its main() function hard realtime :-/. Actually, I wouldn't write new software according to this model. Ok, another argument might be that this may save one thread if there is no other need for it and resources are tight.

Jan

Reply via email to