mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 16:42:26 -05:00
[chore] update latest deps, ensure readme up to date (#1873)
* [chore] update latest deps, ensure readme up to date * remove double entry
This commit is contained in:
parent
f1b70cc00f
commit
b401bd1ccb
156 changed files with 11730 additions and 2842 deletions
8
vendor/modernc.org/sqlite/lib/mutex.go
generated
vendored
8
vendor/modernc.org/sqlite/lib/mutex.go
generated
vendored
|
|
@ -92,13 +92,17 @@ func mutexFromPtr(p uintptr) *mutex {
|
|||
if p == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
ix := p - 1
|
||||
|
||||
mutexes.Lock()
|
||||
defer mutexes.Unlock()
|
||||
|
||||
return &mutexes.a[ix>>8][ix&255]
|
||||
}
|
||||
|
||||
func (m *mutexPool) alloc(recursive bool) uintptr {
|
||||
m.Lock()
|
||||
|
||||
defer m.Unlock()
|
||||
|
||||
n := len(m.freeList)
|
||||
|
|
@ -124,8 +128,8 @@ func (m *mutexPool) free(p uintptr) {
|
|||
ptr := mutexFromPtr(p)
|
||||
ix := ptr.poolIndex
|
||||
*ptr = mutex{}
|
||||
m.Lock()
|
||||
|
||||
m.Lock()
|
||||
defer m.Unlock()
|
||||
|
||||
m.freeList = append(m.freeList, ix)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue