1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch f2997adee0
dirmngr: Add a background task framework.
* dirmngr/workqueue.c: New.
* dirmngr/Makefile.am (dirmngr_SOURCES): Add new file.
* dirmngr/server.c (server_local_s): New field session_id.
(cmd_wkd_get): Add a task.
(task_check_wkd_support): New stub function.
(cmd_getinfo): New sub-commands "session_id" and "workqueue".
(start_command_handler): Add arg session_id and store it in
SERVER_LOCAL.
(dirmngr_status_helpf): New.
* dirmngr/dirmngr.h (wqtask_t): New type.
* dirmngr/dirmngr.c (main): Pass 0 as session_id to
start_command_handler.
(start_connection_thread): Introduce a session_id and pass it to
start_command_handler.  Run post session tasks.
(housekeeping_thread): Run global workqueue tasks.
--

Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 96a4fbecd1acf946dcde20bef4752c539dae196b)
2017-12-11 11:30:45 +01:00
..
2010-12-14 19:17:58 +00:00
2017-02-21 13:11:46 -05:00
2016-09-17 15:57:31 +09:00
2017-04-03 20:56:12 +02:00
2017-07-19 13:41:18 +09:00
2017-07-25 11:49:23 +09:00
2016-12-14 15:56:58 +01:00
2017-03-03 17:17:26 +01:00
2017-07-18 13:56:33 +02:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2017-03-07 20:25:54 +09:00
2014-03-07 19:00:31 +01:00
2010-06-09 16:53:51 +00:00
2017-07-24 15:35:34 +09:00
2017-03-07 20:25:54 +09:00
2017-04-03 20:56:12 +02:00
2010-06-09 16:53:51 +00:00
2011-02-04 12:57:53 +01:00
2017-03-07 20:25:54 +09:00