Small features: more comfortable thread handling
Merge pull request #370 from mdkus/master

Small features: more comfortable thread handling