improve threading and concurrency stuff
Merge branch 'master' of https://github.com/alfinoc/countbroadcast