diff options
author | NIIBE Yutaka <[email protected]> | 2023-08-31 05:49:38 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-08-31 05:49:38 +0000 |
commit | 92de0387f04b1e87a4a49ed063323624f25ac3ef (patch) | |
tree | 4da2ba4509b0fc0ad5dbb1a3e6f2822109c96853 /dirmngr/ldap-parse-uri.c | |
parent | agent: Better interaction between main loop and cache expiration. (diff) | |
download | gnupg-92de0387f04b1e87a4a49ed063323624f25ac3ef.tar.gz gnupg-92de0387f04b1e87a4a49ed063323624f25ac3ef.zip |
agent: Introduce management of timer to expire cache entries.
* agent/cache.c (struct timer_s): New.
(struct cache_item_s): Add a member filed T for timer.
(the_timer_list, the_timer_list_new): New.
(insert_to_timer_list_new, insert_to_timer_list): New.
(remove_from_timer_list, remove_from_timer_list_new): New.
(housekeeping): Remove.
(compute_expiration, update_expiration): New.
(do_expire): New.
(TIMERTICK_INTERVAL): Remove.
(agent_cache_expiration): Use timer list to manage the expiration
of cache entries.
(agent_flush_cache): Call update_expiration when needed.
(agent_put_cache): Don't call housekeeping any more, but
update_expiration for an entry in question.
(agent_get_cache): Likewise.
--
GnuPG-bug-id: 6681
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'dirmngr/ldap-parse-uri.c')
0 files changed, 0 insertions, 0 deletions