Jump to content

Notifier vs. Generated User-Event w/ Event Struct


Recommended Posts

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.

Link to comment
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.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.