aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/workqueue.c
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <[email protected]>2016-11-01 01:27:36 +0000
committerDaniel Kahn Gillmor <[email protected]>2019-07-20 18:16:20 +0000
commit758212d3b25e8a191bdf16cb3f3c84b69f515a55 (patch)
tree1a9b4721a7913a79589dd25a2c904023e8ad58df /dirmngr/workqueue.c
parentdirmngr: Avoid automatically checking upstream swdb. (diff)
downloadgnupg-758212d3b25e8a191bdf16cb3f3c84b69f515a55.tar.gz
gnupg-758212d3b25e8a191bdf16cb3f3c84b69f515a55.zip
agent: Create framework of scheduled timers.
agent/gpg-agent.c (handle_tick): Remove intermittent call to check_own_socket. (tv_is_set): Add inline helper function for readability. (handle_connections) Create general table of pending scheduled timeouts. -- handle_tick() does fine-grained, rapid activity. check_own_socket() is supposed to happen at a different interval. Mixing the two of them makes it a requirement that one interval be a multiple of the other, which isn't ideal if there are different delay strategies that we might want in the future. Creating an extensible regular timer framework in handle_connections should make it possible to have any number of cadenced timers fire regularly, without requiring that they happen in cadences related to each other. It should also make it possible to dynamically change the cadence of any regularly-scheduled timeout. Signed-off-by: Daniel Kahn Gillmor <[email protected]> Gbp-Pq: Topic gpg-agent-idling Gbp-Pq: Name agent-Create-framework-of-scheduled-timers.patch
Diffstat (limited to 'dirmngr/workqueue.c')
0 files changed, 0 insertions, 0 deletions