DeviceQueue: shared memory queue implementation