Fixed thread_func a bit
Merge branch 'master' of github.com:em-mo/TDDD56