aboutsummaryrefslogtreecommitdiff
path: root/handlers/cgit/cgit.go
diff options
context:
space:
mode:
authorLibravatar Terin Stock <terinjokes@gmail.com>2023-03-02 00:05:26 +0100
committerLibravatar Terin Stock <terinjokes@gmail.com>2023-03-02 00:05:26 +0100
commitd6baaceefab0a307b1d7ae8f8bf92cfa5e03a854 (patch)
tree856ef72e83f4c30e5c1a18a2c8ebb596d24f60e8 /handlers/cgit/cgit.go
parentadd initial version of cgit-httpd (diff)
downloadcgit-httpd-d6baaceefab0a307b1d7ae8f8bf92cfa5e03a854.tar.xz
fix: manager started race
It's possible for there to be a data race where `Add` checks if the manager has started, then proceeds to append to the runnables slice, at the same time that `Start` is progressing towards starting the manager. This results in a data race with the runnables slice. This changeset modifies the manager to use a more traditional locking approach.
Diffstat (limited to 'handlers/cgit/cgit.go')
0 files changed, 0 insertions, 0 deletions