Files
OwnCord/Server/syncutil/mutex_prod.go
T
jevb a24dbd5d55 feat: add syncutil mutex, test scaffolding, and server hardening
- Add syncutil package with deadlock-detecting mutex (build-tag switchable)
- Add main_test.go TestMain scaffolding across all server packages
- Harden concurrency in ws, admin, auth, and updater packages
- Update CI workflow, go.mod/sum, Cargo.lock, and root changelogen tooling
2026-04-01 12:04:15 +02:00

12 lines
202 B
Go

//go:build !deadlock
package syncutil
import "sync"
// Mutex is sync.Mutex in production builds.
type Mutex = sync.Mutex
// RWMutex is sync.RWMutex in production builds.
type RWMutex = sync.RWMutex