Compare commits

...

2 Commits

Author SHA1 Message Date
55f80432bb v0.0.617
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 2m18s
2025-12-06 11:54:36 +01:00
d6daf0e285 v0.0.616
Some checks failed
Build Docker and Deploy / Run goext test-suite (push) Has been cancelled
2025-12-06 11:53:59 +01:00
2 changed files with 14 additions and 2 deletions

View File

@@ -91,3 +91,15 @@ func (mm *MultiMutex[TKey]) RLocker(key TKey) sync.Locker {
lck := mm.mutextMap.GetAndSetIfNotContainsFunc(key, NewCASMutex)
return lck.RLocker()
}
// Get returns a Locker interface
func (mm *MultiMutex[TKey]) Get(key TKey) sync.Locker {
lck := mm.mutextMap.GetAndSetIfNotContainsFunc(key, NewCASMutex)
return lck
}
// GetCAS returns the underlying CASMutex
func (mm *MultiMutex[TKey]) GetCAS(key TKey) *CASMutex {
lck := mm.mutextMap.GetAndSetIfNotContainsFunc(key, NewCASMutex)
return lck
}

View File

@@ -1,5 +1,5 @@
package goext
const GoextVersion = "0.0.615"
const GoextVersion = "0.0.617"
const GoextVersionTimestamp = "2025-12-06T11:50:54+0100"
const GoextVersionTimestamp = "2025-12-06T11:54:36+0100"