Remove mutex, since no usages

This commit is contained in:
Melody Becker 2025-04-24 15:57:14 +02:00
parent 09de0a19e1
commit be9ed2adef
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI

View file

@ -1,30 +0,0 @@
package wrappedmutex
import "sync"
type Mutex[T any] struct {
wrapped T
lock sync.Mutex
}
func New[T any](wrapped T) Mutex[T] {
return Mutex[T]{
wrapped: wrapped,
}
}
func (m *Mutex[T]) Lock() {
m.lock.Lock()
}
func (m *Mutex[T]) TryLock() bool {
return m.lock.TryLock()
}
func (m *Mutex[T]) Unlock() {
m.lock.Unlock()
}
func (m *Mutex[T]) Get() *T {
return &m.wrapped
}