add getter method with timeout to thread queue class (cxxtools::Queue)