suyash

Hi All,

I have a multi-threaded application and I would like to have one of the threads to be able to raise a particular signal for other threads, all the other threads are set to handle this signal througn a handler. Is this even possible

If there is an equivalent mechanism which can do similar thing please let me know.

Thanks in advance.
Sushu





Re: Visual C++ Language Is there a way to raise a signal for a particular thread/pid?

Simple Samples

Please understand that a pid is for a process and a process is very different from a thread.

I am not sure I understand what you are asking, but probably the C++ language does not have anything useful for what you need.

You should have no problem using the CLI/CLR but I am not familiar with it.

Using the Windows (Platform) SDK there are events; see CreateEvent. Perhaps that is what you are looking for.

You could use messages and PostThreadMessage to send and a message loop to receive.