A queue safe to use in concurrency problems