From a5a5f454ec658ee79c20dd0dab0cb942ffc8bfd2 Mon Sep 17 00:00:00 2001 From: Markus Mottl Date: Sat, 25 Nov 2017 10:33:37 -0500 Subject: [PATCH] Improved thread-related documentation --- src/sqlite3.mli | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sqlite3.mli b/src/sqlite3.mli index 3f1e8cf..ee1b0c4 100644 --- a/src/sqlite3.mli +++ b/src/sqlite3.mli @@ -54,8 +54,9 @@ type db databases and the error code from the last operation if the function implementing that operation takes a database handle as a parameter. - NOTE: DO NOT USE THIS HANDLE WITHIN THREADS OTHER THAN THE ONE THAT - CREATED IT!!! + @see about thread safety when + accessing database handles and also consider using the [mutex] flag with + {!db_open} if necessary. NOTE: database handles are closed (see {!db_close}) automatically when they are reclaimed by the GC unless they have already been @@ -67,8 +68,8 @@ type stmt (** Compiled statement handle. Stores information about compiled statements created by the [prepare] or [prepare_tail] functions. - NOTE: DO NOT USE THIS HANDLE WITHIN THREADS OTHER THAN THE ONE THAT - CREATED IT!!! + @see about thread safety when + accessing statement handles. *) type header = string