Andreas Raab | 9 Jul 03:07

Re: Message queues: TIsland vs TIslandController

Matthew Fulmer wrote:
> I don't understand the relationship between TIsland and
> TIslandController. Why do both of them have a message queue and
> a current time?

Actually TIslandController doesn't have a current time. However, it 
utilizes its own event loop because there is so much concurrent 
interaction going on that it's easier to synchronize it by scheduling it 
via its own event loop. That event queue is entirely unrelated to the 
islands' queue.

> It seems to me that TIsland should have no notion of time, and
> just be a message queue, while TIslandController knows about
> time and releases messages to the TIsland when it needs them

That's exactly what the controller does. The TIsland needs its own 
notion of time though since it must be able to schedule internal future 
messages.

Cheers,
   - Andreas


Gmane