>>>>> "DLN" == David L Nicol <[EMAIL PROTECTED]> writes:
DLN> Uri Guttman wrote:
>>
>> multiple timers
DLN> This means something like there is this array of sets of events,
DLN> and a thread that shifts off the front one every second and
DLN> feeds everythin in it into the event queue. Right?
maybe. that is one method of doing delivery of events. my favorite style
is with callbacks. let the event loop figure out the way to do the
callback and who to call. your method requires you do always write your
own event dispatcher which is redundant with that guy's :)
so you queue up event requests each of which has args which select which
of your objects/method or subs get called back. much less coding on your
part. also threads can be handled easily with an optional event loop per
thread or only one thread handling events and doing interthread
communication.
uri
--
Uri Guttman --------- [EMAIL PROTECTED] ---------- http://www.sysarch.com
SYStems ARCHitecture and Stem Development ------ http://www.stemsystems.com
Learn Advanced Object Oriented Perl from Damian Conway - Boston, July 10-11
Class and Registration info: http://www.sysarch.com/perl/OOP_class.html