brent99 Posted May 17, 2005 Report Share Posted May 17, 2005 I kick off an independent loop using a generated user-event that wakes up a single-event event structure. It occurs to me that I probably could have used a notifier to do the same thing. Are these essential the same mechanisms? The only advantage I can think of to the event structure is it could more easily expand to accomodate other events if my situation required it. Quote Link to comment
Jim Kring Posted May 19, 2005 Report Share Posted May 19, 2005 I kick off an independent loop using a generated user-event that wakes up a single-event event structure. It occurs to me that I probably could have used a notifier to do the same thing. Are these essential the same mechanisms? The only advantage I can think of to the event structure is it could more easily expand to accomodate other events if my situation required it. 4778[/snapback] NO! Events are queued, Notifications are NOT. If your processing loop cannot execute fast enough, you might miss Notifications that happen while you are processing them. Unlike the Queue Operations functions, the Notifier Operations functions do not buffer sent messages. If no nodes are waiting on a message when it is sent, the data is lost if another message is sent. Notifiers behave like single-element, bounded, lossy queues. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.