add a thread name for easier profiling
Merge pull request #1437 from sijchen/after_review2

[Encoder] add a thread name for easier profiling