aerc/worker
Tim Culverhouse ea58e76332 worker: do not lock while callbacks are running
Commit 716ade8968 ("worker: lock access to callback maps") introduced
locks to the worker callback maps. The locks also locked the processing
of the callback, which had the unintended side effect of deadlocking the
worker if any callbacks attempted to post a new action or message.

Refactor the locks to only lock the worker while accessing the maps.

Fixes: 716ade8968 ("worker: lock access to callback maps")
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
2022-09-29 20:09:17 +02:00
..
handlers go.mod: change base git url 2021-11-05 10:21:45 +01:00
imap imap: stop checkmail if there are pending actions 2022-09-29 17:14:07 +02:00
lib lib: parse address header fields to utf-8 2022-09-29 16:51:53 +02:00
maildir backends: send MessageInfoError on header fetching error 2022-09-25 11:54:27 +02:00
mbox backends: send MessageInfoError on header fetching error 2022-09-25 11:54:27 +02:00
notmuch notmuch: move logic for dynamic folders to backend 2022-09-29 16:52:12 +02:00
types worker: do not lock while callbacks are running 2022-09-29 20:09:17 +02:00
handler_notmuch.go format: reformat code with go 1.17 2021-12-11 23:24:08 +01:00
worker.go logging: use level-based logger functions 2022-07-23 22:52:15 +02:00
worker_enabled.go mbox: implement an mbox backend worker 2022-07-14 23:14:45 +02:00