Functions for getting the current thread and for working with thread names were added.