main
v1.0.0
modernc.org/SQLite/internal/threadtest2
Documentation
pkg.go.dev ↗threadtest2
/* ** 2004 January 13 ** ** 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 test whether ** or not the SQLite library is threadsafe. ** ** This file is NOT part of the standard SQLite library. It is used for ** testing only. */
Variables
X__stdfiles
var X__stdfiles [3]unsafe.Pointer
Xall_stop
var Xall_stop int32
C comment
/* ** When this variable becomes non-zero, all threads stop ** what they are doing. */
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)
C comment
/* ** Initialize the database and start the threads */
Xworker
func Xworker(tls *crt.TLS, _workerArg unsafe.Pointer) (r0 unsafe.Pointer)
C comment
/* ** This is the worker thread */