Added sync_queue_base and refactor the concurrent queues to make use of this class. Make other refactor on priority and timed queues.