|
IPCSignal works like the Signal() class, only it has some major advantages:
- Works between processes as well as threads
- releases only one waiting thread
- as a thread issues a wait(), it joins a queue
- no need to pass (share) instances between threads/processes
When you call the wait() method, the current thread joins the queue of threads
waiting for this signal. When the controlling thread (which may be in another application)
calls the signal() method, only the first thread in the queue is released.
|