mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-16 14:13:02 -06:00
bump modernc.org/sqlite to v1.35.0-concurrency-workaround (#3797)
This commit is contained in:
parent
879ca2d2f8
commit
ebbdeee0bb
114 changed files with 891873 additions and 192475 deletions
20
vendor/modernc.org/libc/pthread_musl.go
generated
vendored
20
vendor/modernc.org/libc/pthread_musl.go
generated
vendored
|
|
@ -2,7 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux && (amd64 || arm64 || loong64)
|
||||
//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
|
|
@ -22,14 +22,14 @@ type pthreadCleanupItem struct {
|
|||
routine, arg uintptr
|
||||
}
|
||||
|
||||
// C version is 40 bytes.
|
||||
type pthreadMutex struct {
|
||||
sync.Mutex // 0 8
|
||||
count int32 // 8 4
|
||||
mType uint32 // 12 4
|
||||
outer sync.Mutex // 16 8
|
||||
owner int32 // 20 4
|
||||
// 24
|
||||
// C version is 40 bytes (64b) and 24 bytes (32b).
|
||||
type pthreadMutex struct { // 64b 32b
|
||||
sync.Mutex // 0 8 0 8
|
||||
count int32 // 8 4 8 4
|
||||
mType uint32 // 12 4 12 4
|
||||
outer sync.Mutex // 16 8 16 8
|
||||
owner int32 // 24 4 24 4
|
||||
// 28 28
|
||||
}
|
||||
|
||||
type pthreadConds struct {
|
||||
|
|
@ -374,7 +374,7 @@ func Xpthread_cond_timedwait(tls *TLS, c, m, ts uintptr) (r int32) {
|
|||
if ts != 0 {
|
||||
deadlineSecs := (*Ttimespec)(unsafe.Pointer(ts)).Ftv_sec
|
||||
deadlineNsecs := (*Ttimespec)(unsafe.Pointer(ts)).Ftv_nsec
|
||||
deadline := time.Unix(deadlineSecs, deadlineNsecs)
|
||||
deadline := time.Unix(deadlineSecs, int64(deadlineNsecs))
|
||||
d := deadline.Sub(time.Now())
|
||||
if d <= 0 {
|
||||
return ETIMEDOUT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue