Use API call instead of accessing a global variable for receiving the current thread.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25657 a1c6a512-1295-4272-9138-f99709370657
3 files changed