home *** CD-ROM | disk | FTP | other *** search
- Path: sundog.tiac.net!usenet
- From: Darius Taghavy <dart@ycrdi.com>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: MsgPorts and lists
- Date: 20 Feb 1996 19:55:04 GMT
- Organization: Young Chang R&D Institute
- Message-ID: <4gd8uo$btm@sundog.tiac.net>
- References: <1527.6618T48T2102@amiga.pp.se>
- NNTP-Posting-Host: gatekeep.ycrdi.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (Macintosh; I; PPC)
- X-URL: news:1527.6618T48T2102@amiga.pp.se
-
- mikael.berglund@amiga.pp.se (Mikael Berglund) wrote:
- >In a project i am currently working with i have one port that serves many
- >supporting windows. The main message handler GT_GetIMsg() and decide which
- >of the windows this message belongs to and calls the appropriate handler.
-
- fine
-
- >This handler keeps popping messages until it stumbles upon a message that
- >does not concern this handler. It then returns this message to the main
- >handler which dispatches it to the right handler.
-
- Why?
- [ complicated stuff deleted]
-
- >Or is they way i solved it now, shuffling pointers to messages between the
- >handlers around the optimal solution? (And safest :D)
-
- Better solution: Walk the list in the main handler.
-
- Best Regards,
- Darius
-
-
-