SQLite3 Multithreading in C++ (linux)

view story

http://stackoverflow.com – My applikations runs in several threads. Up to four threads need to access my sqlite3 database. To implement this, I decided to run the database in a seperate thread. In this thread I have a queue (simply a vector of strings). This queue is filled through a pipe from the other four worker threads. After a timelimit or a max. number of elements in my queue I execute it. Is this an acceptable solution? Or does anyone have a better one? (HowTos)