How to use SQLITE_CONFIG_GETMUTEX

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to use SQLITE_CONFIG_GETMUTEX

Ankh
This post has NOT been accepted by the mailing list yet.
Hello,

I want to get sqlite3_mutex_methods with correct pointers to mutex methods.

1. sqlite3_config(SQLITE_CONFIG_GETMUTEX, ...) should be called *before* sqlite3_initializate
2. sqlite3MutexInit is called during sqlite3_initializate

Thus I cannot obtain  valid sqlite3_mutex_methods.

What is the correct way of using SQLITE_CONFIG_GETMUTEX?