Thread A generates a timer event.
Thread B calls event_free_finalize() on that event.

Is this ok?


What if:

Thread A and B each have their own bases.

Thread A generates timer event.

Thread B is invoked through some read event.
        While Thread B is in scope, timer ‘goes off’ and is queued for A to 
process when we get back to A’s event queue
Still in Thread B, it calls event_free_finalize() on that event.
Thread B goes back to polling its queue.

Thread A wakes up.


The timer firing had been put in A’s queue, B later event_free_finalize()’d it 
… will A’s callback still be invoked for that timer?


- psd

***********************************************************************
To unsubscribe, send an e-mail to majord...@freehaven.net with
unsubscribe libevent-users    in the body.

Reply via email to