[Tarantool-patches] [PATCH 2/2] feedback_daemon: send feedback on tarantool exit

Aleksandr Lyapunov alyapunov at tarantool.org
Fri Dec 25 14:23:49 MSK 2020


> I may be mistaken, but as far as I understand, channel:put calls 
> fiber_wakeup()
> under the hood. And fiber_wakeup() puts the fiber to execution at the 
> end of this particular
> event loop iteration.
>
> The next on_shutdown trigger breaks the event loop though. And I'm not 
> sure whether
> it does it immediately or waits till the event loop iteration end.
>
> Here's what the libev doc says:
> `
> ev_break (loop, how)
>
>    Can be used to make a call to|ev_run|return early (but only after it
>    has processed all outstanding events).
>
> `
> Looks like we're safe. The loop won't break until it processes the 
> fiber_wakeup event.

Looks like you are right. But I feel uncomfortable when I rely on 
feature that is
not documented and/or not covered with tests.



More information about the Tarantool-patches mailing list