| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Can a thread "raise" an event? |
| From: | "Eric M.Williams" <eric at oxalyn dot com> |
| Date: | Sun, 3 Oct 2004 10:55:19 -0700 |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <89B39709-1564-11D9-B86A-000A9585ABA2 at mac dot com> |
I've implemented a small producer / consumer pattern. Objects can register as consumers for special events. They then get notfied, when such an event occurs. To be a consumer, the class has to implemente the consumer interface. Other objects can forward notifications to the producer/consumer manager. The manager decides, who has to receive a message. The pattern allows to have anonymous producer / consumer connections, since events are forwarded based on subscribed event patterns. I've never heard of somebody basing their programming style on communism (a command economy). :) (If this is an obscure reference, read "The Commanding Heights" by Daniel Yergin and somebody else I don't remember, or enjoy the PBS series based on the book.) Eric M. Williams Oxalyn Software http://software.oxalyn.com/ AE Monitor http://software.oxalyn.com/AEMonitor/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives of this list here: <http://www.realsoftware.com/listarchives/lists.html> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Getting the SSL certificate info from the handshake, Dudley Bryan Jr. |
|---|---|
| Next by Date: | Re: To MDI or not to MDI on Windows?, William Squires |
| Previous by Thread: | Fwd: Can a thread "raise" an event?, Stefan Pantke |
| Next by Thread: | Re: Can a thread "raise" an event?, Stefan Pantke |
| Indexes: | [Date] [Thread] [Top] [All Lists] |