SIGEV_SIGNAL_THREAD

Hi,

On
http://qdn.qnx.com/support/docs/neutrino/lib_ref/s/sigevent.html
I read:
SIGEV_SIGNAL_THREAD
Send a signal to a specific thread. The following fields are used:

int sigev_signo
The signal to raise. This must be in the range from 1 through NSIG - 1.
short sigev_code
A code to be interpreted by the signal handler. This must be in the range
from SI_MINAVAIL through SI_MAXAVAIL.
void *sigev_value.sival_ptr
A 32-bit value to be interpreted by the signal handler.
The initialization macro is:

SIGEV_SIGNAL_THREAD_INIT( event, signal, value, code )

Q:
how can I send signal to SPECIFIC thread ???
i.e.–
Where should I point thread-id of that thread ???

Or may be I wrong in understanding of SIGEV_SIGNAL_THREAD in that docs ???

Anybody, answer me, please.

vasa

vasa <vv40in@rambler.ru> wrote:

Hi,

On
http://qdn.qnx.com/support/docs/neutrino/lib_ref/s/sigevent.html
I read:
SIGEV_SIGNAL_THREAD
Send a signal to a specific thread. The following fields are used:

int sigev_signo
The signal to raise. This must be in the range from 1 through NSIG - 1.
short sigev_code
A code to be interpreted by the signal handler. This must be in the range
from SI_MINAVAIL through SI_MAXAVAIL.
void *sigev_value.sival_ptr
A 32-bit value to be interpreted by the signal handler.
The initialization macro is:

SIGEV_SIGNAL_THREAD_INIT( event, signal, value, code )

Q:
how can I send signal to SPECIFIC thread ???
i.e.–
Where should I point thread-id of that thread ???

Or may be I wrong in understanding of SIGEV_SIGNAL_THREAD in that docs ???

Anybody, answer me, please.

vasa

See http://qdn.qnx.com/support/docs/neutrino_2.11_en/sys_arch/kernel.html
Under Neutrino IPC there is a section on sending signals to multi-threaded
processes.

Regards,
Barry