aboutsummaryrefslogtreecommitdiff
path: root/commands/compose
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-05-19 09:50:19 +0000
committerDrew DeVault <sir@cmpwn.com>2019-05-19 11:51:22 -0400
commitf27db333052aa24a0aad135c09ce7969bf31bc56 (patch)
tree92acd47ded90d7c1a5e0c283c446122ff9aef594 /commands/compose
parent34dd6bc6354cd3592ed51da83de1a0839e08a37d (diff)
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.
Diffstat (limited to 'commands/compose')
0 files changed, 0 insertions, 0 deletions