mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
- 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
13 lines
325 B
Go
13 lines
325 B
Go
//go:build deadlock
|
|
|
|
package syncutil
|
|
|
|
import "github.com/sasha-s/go-deadlock"
|
|
|
|
// Mutex is deadlock.Mutex when built with -tags=deadlock.
|
|
// It detects potential deadlocks via lock ordering analysis.
|
|
type Mutex = deadlock.Mutex
|
|
|
|
// RWMutex is deadlock.RWMutex when built with -tags=deadlock.
|
|
type RWMutex = deadlock.RWMutex
|