make sqlite3 thread-safer(?) by using a thread pool

This commit is contained in:
Ron Pedde
2006-03-07 06:01:59 +00:00
parent d53e2f83e4
commit 8e9d759e05
5 changed files with 254 additions and 109 deletions

View File

@@ -208,7 +208,7 @@ int main(int argc, char *argv[]) {
char txtrecord[255];
int err;
char *perr;
char *perr=NULL;
config.use_mdns=1;
err_setlevel(1);
@@ -393,8 +393,8 @@ int main(int argc, char *argv[]) {
end_time=(int) time(NULL);
db_get_song_count(&perr,&song_count);
if(perr) {
err=db_get_song_count(&perr,&song_count);
if(err != DB_E_SUCCESS) {
DPRINTF(E_FATAL,L_MISC,"Error getting song count: %s\n",perr);
}