add new locks added to master

This commit is contained in:
Wade Simmons
2025-04-02 11:57:02 -04:00
parent f896e2a863
commit 2a2b6424ed
9 changed files with 31 additions and 20 deletions

View File

@@ -11,12 +11,12 @@ import (
"sort"
"strconv"
"strings"
"sync"
"syscall"
"time"
"dario.cat/mergo"
"github.com/sirupsen/logrus"
"github.com/wadey/synctrace"
"gopkg.in/yaml.v3"
)
@@ -27,13 +27,14 @@ type C struct {
oldSettings map[string]any
callbacks []func(*C)
l *logrus.Logger
reloadLock sync.Mutex
reloadLock synctrace.Mutex
}
func NewC(l *logrus.Logger) *C {
return &C{
Settings: make(map[string]any),
l: l,
Settings: make(map[string]any),
l: l,
reloadLock: synctrace.NewMutex("config-reload"),
}
}