Move get_queue behavior into Queue class

This commit is contained in:
Matias Fontanini
2018-10-27 09:25:07 -07:00
parent 71fb76b8e1
commit 8dc94869fd
4 changed files with 27 additions and 17 deletions

View File

@@ -52,7 +52,18 @@ public:
* \param handle The handle to be used
*/
static Queue make_non_owning(rd_kafka_queue_t* handle);
/**
* \brieef Creates a Queue object out of a handle.
*
* This will check what the rdkafka version is and will return either an owned
* queue handle or a non owned one, depending on whether the current version
* is >= RD_KAFKA_QUEUE_REFCOUNT_BUG_VERSION (see macros.h)
*
* \param handle The handle to be used
*/
static Queue make_queue(rd_kafka_queue_t* handle);
/**
* \brief Constructs an empty queue
*