aboutsummaryrefslogtreecommitdiff
path: root/www/capi3ref.tcl
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2006-01-17 16:10:13 +0000
committerdanielk1977 <danielk1977@noemail.net>2006-01-17 16:10:13 +0000
commitcbb8496c5e8ce0b46bb4e09ec2a2994aa62c7d2c (patch)
tree507db4bbabc5327a8666a5ce12fcb4696447a268 /www/capi3ref.tcl
parent08659fee65062a45324c627ec122cf4b7c70d0b9 (diff)
downloadsqlite-cbb8496c5e8ce0b46bb4e09ec2a2994aa62c7d2c.tar.gz
sqlite-cbb8496c5e8ce0b46bb4e09ec2a2994aa62c7d2c.zip
Arrange for ThreadData to be automatically deallocated even if SQLITE_MEMDEBUG is defined. Fix for #1623. (CVS 2965)
FossilOrigin-Name: 9e2e40845d30cc150abe23ee318a721b4fe9613c
Diffstat (limited to 'www/capi3ref.tcl')
-rw-r--r--www/capi3ref.tcl10
1 files changed, 7 insertions, 3 deletions
diff --git a/www/capi3ref.tcl b/www/capi3ref.tcl
index d182bcccd..b1f7d66c2 100644
--- a/www/capi3ref.tcl
+++ b/www/capi3ref.tcl
@@ -1,4 +1,4 @@
-set rcsid {$Id: capi3ref.tcl,v 1.29 2006/01/15 18:29:18 drh Exp $}
+set rcsid {$Id: capi3ref.tcl,v 1.30 2006/01/17 16:10:14 danielk1977 Exp $}
source common.tcl
header {C/C++ Interface For SQLite Version 3}
puts {
@@ -1301,8 +1301,12 @@ api {} {
} {
This routine sets the soft heap limit for the current thread to N.
If the total heap usage by SQLite in the current thread exceeds N,
- then sqlite3_release_memory() is
- called to try to reduce the memory usage below the soft limit.
+ then sqlite3_release_memory() is called to try to reduce the memory usage
+ below the soft limit.
+
+ Prior to shutting down a thread sqlite3_soft_heap_limit() must be set to
+ zero (the default) or else the thread will leak memory. Alternatively, use
+ the sqlite3_thread_cleanup() API.
A negative or zero value for N means that there is no soft heap limit and
sqlite3_release_memory() will only be called when memory is exhaused.