main
v1.0.0
modernc.org/SQLite/internal/threadtest4
Documentation
pkg.go.dev ↗threadtest4
/* ** 2014-12-11 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** This file implements a simple standalone program used to stress the ** SQLite library when accessing the same set of databases simultaneously ** from multiple threads in shared-cache mode. ** ** This test program runs on unix-like systems only. It uses pthreads. ** To compile: ** ** gcc -g -Wall -I. threadtest4.c sqlite3.c -ldl -lpthread ** ** To run: ** ** ./a.out 10 ** ** The argument is the number of threads. There are also options, such ** as -wal and -multithread and -serialized. ** ** Consider also compiling with clang instead of gcc and adding the ** -fsanitize=thread option. */
Variables
X__stdfiles
var X__stdfiles [3]unsafe.Pointer
Xstderr
var Xstderr unsafe.Pointer
Xstdin
var Xstdin unsafe.Pointer
Xstdout
var Xstdout unsafe.Pointer
Functions
X_start
func X_start(tls *crt.TLS, _argc int32, _argv **int8)
Xmain
func Xmain(tls *crt.TLS, _argc int32, _argv **int8) (r0 int32)
Types
XWorkerInfo
type XWorkerInfo struct {
Xtid int32
XnWorker int32
XwkrFlags uint32
XmainDb unsafe.Pointer
Xdb unsafe.Pointer
XnErr int32
XnTest int32
XzMsg *int8
Xid uint64
XpWrMutex unsafe.Pointer
} // t6 struct{tid int32,nWorker int32,wkrFlags uint32,mainDb *struct{},db *struct{},nErr int32,nTest int32,zMsg *int8,id uint64,pWrMutex *struct{}}