thread-safe
Merge pull request #3462 from threus/tkdqmthreaded

DQM -- thread-safe