add message queue class to threadpool