summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-01-24 19:04:21 +0000
committerChristopher Baines <mail@cbaines.net>2020-01-25 22:32:09 +0000
commite34d773faf7309d4273fe204149845999d4ed8a7 (patch)
tree36c04c21af678ceaedb1527fbb1623852a9be76f /doc
parent0d23a6d374340f3f9a3b035f960abd39447e11c3 (diff)
downloadcuirass-e34d773faf7309d4273fe204149845999d4ed8a7.tar
cuirass-e34d773faf7309d4273fe204149845999d4ed8a7.tar.gz
Adjust make-worker-thread-channel to take an initializer.
While this is a generic method, and initializer function will give the flexibility required to create multiple worker threads for performing SQLite queries, each with it's own database connection (as a result of calling the initializer once for each thread). Without this change, they'd all have to use the same connection, which would not work. * src/cuirass/utils.scm (make-worker-thread-channel): Change procedure to take an initializer, rather than arguments directly. * src/cuirass/database.scm (with-database): Adjust to call make-worker-thread-channel with an initializer. * tests/database.scm (db-init): Change to use make-worker-thread-channel initializer. * tests/http.scm (db-init): Change to use make-worker-thread-channel initializer.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions