Added timeout to classmsg_fifo_queue