When a new thread is spawned, call db_attach_thread function before performing database operations to make the database library aware of the thread. When the thread is finished, call db_detach_thread. db_attach_thread and db_detach_thread are not implemented yet.
|