View Single Post
  #2 (permalink)  
Old 04-23-2008, 09:27 PM
danielstoner's Avatar
danielstoner danielstoner is offline
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 117
danielstoner is on a distinguished road
There are lots of possible solutions, here are a couple:

- Keep a counter of remaining outgoing directions with each message in the queue and each outgoing thread will decrement it. Last thread removes it.

- Duplicate the message for each outgoing thread; one queue per thread.

Don't forget to synchronize in the proper places.
__________________
Daniel @ [www.littletutorials.com]
Language is froth on the surface of thought
Reply With Quote