1
0
mirror of https://git.sr.ht/~sircmpwn/aerc synced 2024-11-23 16:42:07 +01:00
aerc/worker
Simon Ser f27db33305 worker/types/worker: make ID allocation atomic
Message IDs are allocated for both messages from UI to workers and the other
way around. Hence, the global nextId variable is accessed from multiple
goroutines.

Instead, use atomic to access the global counter.
2019-05-19 11:51:22 -04:00
..
imap s/aerc2/aerc/g 2019-05-17 20:57:10 -04:00
types worker/types/worker: make ID allocation atomic 2019-05-19 11:51:22 -04:00
worker.go s/aerc2/aerc/g 2019-05-17 20:57:10 -04:00