rajrakeshdr / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

Make threads deamons #229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It sometimes happen when you close PyChess, that a background thread hasn't
finished, and thus leaves PyChess hanging.
This can be avoided by setting setDaemon(True) on the Threads and
Threadsubclasses.
Even more ideal would it be to make a class with Thread api, which uses
ThreadPool internally. ThreadPool which always sets daemon.

Original issue reported on code.google.com by lobais on 3 Oct 2007 at 9:27

GoogleCodeExporter commented 9 years ago
Fixed in svn.
The PooledThread subclass wasn't much use though, as the related threads were 
running
for a very long time, thus not being candidates for pooling.

Original comment by lobais on 4 Oct 2007 at 9:43