diff options
author | 2023-03-02 00:05:26 +0100 | |
---|---|---|
committer | 2023-03-02 00:05:26 +0100 | |
commit | d6baaceefab0a307b1d7ae8f8bf92cfa5e03a854 (patch) | |
tree | 856ef72e83f4c30e5c1a18a2c8ebb596d24f60e8 /config.go | |
parent | add initial version of cgit-httpd (diff) | |
download | cgit-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 'config.go')
0 files changed, 0 insertions, 0 deletions