Open inanimateobject opened 10 years ago
Unfortunately the SQLite bindings aren't thread safe, and as a result Brain.learn and Brain.reply always need to be called from the same thread. This is a pain, for sure.
Maybe use a pair of queue.Queue() instances for send/recv from a worker thread?
Hi, I'm trying to use
Brain.reply()
from multiple threads, and I'm getting the following:My code, for reference, is merely:
Each thread runs that code. All I need to do is somehow get random cobe replies into thread output. Any ideas?