[dovecot/core] 65b82c: lib: Add asserts to make sure running ioloop is al...
GitHub
noreply at github.com
Wed Aug 9 15:30:10 EEST 2017
Branch: refs/heads/master
Home: https://github.com/dovecot/core
Commit: 65b82c99b1db81a56a1e6c9e92fe8eec49fb36b3
https://github.com/dovecot/core/commit/65b82c99b1db81a56a1e6c9e92fe8eec49fb36b3
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2017-08-09 (Wed, 09 Aug 2017)
Changed paths:
M src/lib/ioloop.c
Log Message:
-----------
lib: Add asserts to make sure running ioloop is always current_ioloop
We could also switch current_ioloop to the running ioloop temporarily while
calling callbacks, but this behavior is probably clearer. All of the
existing code should already work this way.
Add the asserts after IO or timeout callback is called, so if the assert
triggers, we can find out which callback caused the change. The initial
assert in io_loop_handler_run() is enough to verify that the initial
ioloop is correct.
More information about the dovecot-cvs
mailing list