version 3.1.11
- Fix rare race condition in thread pool implementation. At some point I will probably eliminate the thread pool since it seems like overkill, but at least the implementation is now hopefully correct.
- Minor code cleanup in thread pool implementation.