- * @brief Stopping the queueing thread
- * @param thread [IN] thread data that needs to be started
- * @return CA_STATUS_OK or ERROR CODES ( CAResult_t error codes in cacommon.h)
+ * Clears queue thread data.
+ * @param[in] thread thread data for new thread control.
+ * @return ::CA_STATUS_OK or Appropriate error code.
+ */
+CAResult_t CAQueueingThreadClearData(CAQueueingThread_t *thread);
+
+/**
+ * Clears queue thread data of specific context.
+ * @param[in] thread thread data for new thread control.
+ * @param[in] callback Function which should return true if the data
+ * needs to be deleted, else returns false
+ * @param[in] ctx Data to pass to callback
+ */
+CAResult_t CAQueueingThreadClearContextData(CAQueueingThread_t *thread,
+ CAContextDataDestroy callback, void *ctx);
+
+/**
+ * Stop the queuing thread.
+ * @param[in] thread thread data that needs to be started.
+ * @return CA_STATUS_OK or ERROR CODES (CAResult_t error codes in cacommon.h).