add thread_getname function
Merge pull request #246 from mehlis/thread-name

add thread_getname function