yay threadpool

made addToQueue synchronized