]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: prserv/serv: Multithread the server
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Aug 2013 16:10:09 +0000 (16:10 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Aug 2013 23:13:22 +0000 (00:13 +0100)
commitd5e860be4c12a9d6655665af391ffd6f9351f8eb
tree7556d284a5971422aaf476bea54a826c41bb7f33
parent06d76645900b2a7db8f88a0ad3bf4ae66cef52f1
bitbake: prserv/serv: Multithread the server

This makes the PR server multithreaded and able to handle multiple connections
at once which means its no longer a build bottle neck when serving one connection
at a time. I've experimented and database connection for each thread seems to
cause the least issues, pushing the contention for sqllite to handle itself.

This means moving the db/table connection code into the actual function methods.
It doesn't abstract well as a function since we need the db object around for
the lifetime of the function as well as the table else we lose the connection.

(Bitbake rev: bf9be2029b2bded5f532bdda4c38ae3dff5d1cf6)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/prserv/serv.py