[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] rt_inux interrupt



Shlomi Rechtman (srechtma@allot.com) wrote:
> Hi,
> At  Man page Index it was written that 
> "The following functions should not be used 
> in interrupt handler: pthread_delete_np ,pthread_wait_np ..."
> 
> does  "interrupt handler" relate to regular linux interrupt handler or also
> to rt_linux interrupt handler ?

Well, you could run use those functions
in a Linux interrupt handler, although I don't see any reason to do it.

> that is to say: can I do used them insdie a function
>  which if I register to rt_linux hanler ?

Absolutely not. The reason is that blocking functions like
pthread_wait_np block the current thread.
When an RTLinux interrupt handler executes, the current thread may
be any thread.

Michael.