mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 18:02:25 -05:00 
			
		
		
		
	bump to modernc.org/sqlite v1.29.7 (#2850)
This commit is contained in:
		
					parent
					
						
							
								c67bbe5ba0
							
						
					
				
			
			
				commit
				
					
						b3f2d44143
					
				
			
		
					 120 changed files with 631479 additions and 58069 deletions
				
			
		
							
								
								
									
										27
									
								
								vendor/modernc.org/libc/pthread.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								vendor/modernc.org/libc/pthread.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -2,6 +2,8 @@ | |||
| // Use of this source code is governed by a BSD-style | ||||
| // license that can be found in the LICENSE file. | ||||
| 
 | ||||
| //go:build !(linux && (amd64 || loong64)) | ||||
| 
 | ||||
| package libc // import "modernc.org/libc" | ||||
| 
 | ||||
| import ( | ||||
|  | @ -37,6 +39,7 @@ type TLS struct { | |||
| 	errnop      uintptr | ||||
| 	allocaStack [][]uintptr | ||||
| 	allocas     []uintptr | ||||
| 	jumpBuffers []uintptr | ||||
| 	pthreadData | ||||
| 	stack stackHeader | ||||
| 
 | ||||
|  | @ -82,6 +85,29 @@ func (t *TLS) FreeAlloca() func() { | |||
| 	} | ||||
| } | ||||
| 
 | ||||
| func (tls *TLS) PushJumpBuffer(jb uintptr) { | ||||
| 	tls.jumpBuffers = append(tls.jumpBuffers, jb) | ||||
| } | ||||
| 
 | ||||
| type LongjmpRetval int32 | ||||
| 
 | ||||
| func (tls *TLS) PopJumpBuffer(jb uintptr) { | ||||
| 	n := len(tls.jumpBuffers) | ||||
| 	if n == 0 || tls.jumpBuffers[n-1] != jb { | ||||
| 		panic(todo("unsupported setjmp/longjmp usage")) | ||||
| 	} | ||||
| 
 | ||||
| 	tls.jumpBuffers = tls.jumpBuffers[:n-1] | ||||
| } | ||||
| 
 | ||||
| func (tls *TLS) Longjmp(jb uintptr, val int32) { | ||||
| 	tls.PopJumpBuffer(jb) | ||||
| 	if val == 0 { | ||||
| 		val = 1 | ||||
| 	} | ||||
| 	panic(LongjmpRetval(val)) | ||||
| } | ||||
| 
 | ||||
| func Xalloca(tls *TLS, size size_t) uintptr { | ||||
| 	if __ccgo_strace { | ||||
| 		trc("tls=%v size=%v, (%v:)", tls, size, origin(2)) | ||||
|  | @ -420,6 +446,7 @@ func (m *mutex) lock(id int32) int32 { | |||
| 
 | ||||
| 			m.Unlock() | ||||
| 			m.wait.Lock() | ||||
| 			// intentional empty section - wake up other waiters | ||||
| 			m.wait.Unlock() | ||||
| 		} | ||||
| 	default: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue