changed
Added thread-safe method for retrieving queue and creating if
non-existant