Manage thread-safe SQLite connection allocation under multi-threaded workload.
- Initialize a connection pool with
cwist_db_pool_create(path, max_conns). - Acquire and release connections safely using
cwist_db_pool_acquireandcwist_db_pool_release.
mkdir build && cd build
cmake ..
make
./tut06Test with curl:
curl http://127.0.0.1:8085/pool