]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-sql: sql-api - Implement async calls for drivers that can't
authorAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 6 Oct 2025 09:39:50 +0000 (12:39 +0300)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Mon, 20 Oct 2025 17:05:03 +0000 (20:05 +0300)
commita78c015eae67a891a0c14b5434dd1f99838ae4cc
tree067f5a2e4067781de6555387f7328672803624bf
parent26b1bb99f8a94402f4a8049002c463297ae6d166
lib-sql: sql-api - Implement async calls for drivers that can't

Changes the behaviour of asynchronous functions to be truly asynchronous
even if the underlying driver isn't capable of doing this. Implemented
by adding immediate timeouts to call the callbacks after returning from the
synchronous function and ending up back to ioloop.
src/lib-sql/sql-api-private.h
src/lib-sql/sql-api.c
src/lib-sql/sql-api.h