'The id in a queue is a pointer to the queue object returned by hsa_queue_create.
The Queue object has ownership on that queue object'

def __init__(self, agent, queue_ptr):

    self._agent = weakref.proxy(agent)
    self._id = queue_ptr
    self._as_parameter_ = self._id
    self._finalizer = hsa.hsa_queue_destroy
