mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore]: Bump codeberg.org/gruf/go-mutexes from 1.3.1 to 1.4.0 (#2562)
Bumps codeberg.org/gruf/go-mutexes from 1.3.1 to 1.4.0. --- updated-dependencies: - dependency-name: codeberg.org/gruf/go-mutexes dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
35
vendor/codeberg.org/gruf/go-mutexes/map.go
generated
vendored
35
vendor/codeberg.org/gruf/go-mutexes/map.go
generated
vendored
@@ -3,7 +3,6 @@ package mutexes
|
||||
import (
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -250,37 +249,3 @@ func (mu *rwmutex) WaitRelock(outer *sync.Mutex) {
|
||||
// Relock!
|
||||
outer.Lock()
|
||||
}
|
||||
|
||||
// unused fields left
|
||||
// un-named for safety.
|
||||
type notifyList struct {
|
||||
_ uint32 // wait uint32
|
||||
notify uint32 // notify uint32
|
||||
_ uintptr // lock mutex
|
||||
_ unsafe.Pointer // head *sudog
|
||||
_ unsafe.Pointer // tail *sudog
|
||||
}
|
||||
|
||||
// See runtime/sema.go for documentation.
|
||||
//
|
||||
//go:linkname runtime_notifyListAdd sync.runtime_notifyListAdd
|
||||
func runtime_notifyListAdd(l *notifyList) uint32
|
||||
|
||||
// See runtime/sema.go for documentation.
|
||||
//
|
||||
//go:linkname runtime_notifyListWait sync.runtime_notifyListWait
|
||||
func runtime_notifyListWait(l *notifyList, t uint32)
|
||||
|
||||
// See runtime/sema.go for documentation.
|
||||
//
|
||||
//go:linkname runtime_notifyListNotifyAll sync.runtime_notifyListNotifyAll
|
||||
func runtime_notifyListNotifyAll(l *notifyList)
|
||||
|
||||
// Ensure that sync and runtime agree on size of notifyList.
|
||||
//
|
||||
//go:linkname runtime_notifyListCheck sync.runtime_notifyListCheck
|
||||
func runtime_notifyListCheck(size uintptr)
|
||||
func init() {
|
||||
var n notifyList
|
||||
runtime_notifyListCheck(unsafe.Sizeof(n))
|
||||
}
|
||||
|
Reference in New Issue
Block a user