[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[Libevent-users] event_del and already 'in-flight' event triggers



When an event_del() is called on an evq, what happens to triggerings that were already 'in-flight' but haven't had their callbacks called yet.

For example:

  1. read event R is active on fd 42, uses 'callback_func()' as its callback
  2. new packet P1 comes in on fd 42
  3. new packet P2 comes in on fd 42
  4. libevent calls callback_func() for P1
  5. callback_func() calls event_del() on event R

What happens with P2?  Is callback_func() still going to be called for it?

Thanks!

- scott