commit f6d5135
default
·
2023-02-06 19:29:18 +0000 UTC
parent b2d186c
process_queue() now posts the q_item to the thread pool. Instead of calling process_queue_item() itself.
2 files changed,
+4,
-2
M
snac.h
+1,
-1
1@@ -1215,7 +1215,7 @@ void process_queue(void)
2 continue;
3 }
4
5- process_queue_item(q_item);
6+ job_post(q_item);
7 }
8 }
9
M
snac.h
+3,
-1
1@@ -172,7 +172,6 @@ void process_user_queue(snac *snac);
2 void process_queue_item(xs_dict *q_item);
3 void process_queue(void);
4
5-void post(snac *snac, char *msg);
6 int activitypub_get_handler(d_char *req, char *q_path,
7 char **body, int *b_size, char **ctype);
8 int activitypub_post_handler(d_char *req, char *q_path,
9@@ -189,3 +188,6 @@ int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
10 int snac_init(const char *_basedir);
11 int adduser(const char *uid);
12 int resetpwd(snac *snac);
13+
14+void job_post(const xs_val *job);
15+void job_wait(xs_val **job);