Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Broadcasting events throughout the system...: (3 Items)
   
Broadcasting events throughout the system...  
Hey All -

Is there any way to natively broadcast an event/signal/message to multiple processes? 

Example: 

Processes A, B, and C all want to know when some Event X has occurred, so they each register themselves in the system 
and block on the arrival of Event X.

At some later point in time, some ISR fires and broadcasts Event X out to the system. Processes A, B, and C all wake up 
and do their own special onEventX() handler stuff...

Is something like that possible with native QNX messaging? 

Thanks!

MikeZ


Re: Broadcasting events throughout the system...  
You could use posix process groups. Put all the processes you want to broadcast to in their own process group and then 
set a signal on the entire group to broadcast.
RE: Broadcasting events throughout the system...  
Or a condvar in shared memory

________________________________

From: Ken Schumm [mailto:community-noreply@qnx.com]
Sent: Fri 10/24/2008 7:50 PM
To: ostech-core_os
Subject: Re: Broadcasting events throughout the system...



You could use posix process groups. Put all the processes you want to broadcast to in their own process group and then 
set a signal on the entire group to broadcast.

_______________________________________________
OSTech
http://community.qnx.com/sf/go/post15533



Attachment: Text winmail.dat 3.31 KB