10-30-2013 07:40 PM
I'd like to know using CmtGetTSQReadPtr() to read data from a TSQ, after reading, if it will remove the data items from the TSQ at the same time? Because I know when using the CmtReadTSQData() and specify the OPT_TSQ_READ_PEEK parameter, it will leave the data in the queue.
David
11-01-2013 10:41 AM
Hi David,
After calling CmtGetTSQReadPtr, you must also call CmtReleaseTSQReadPtr when you are done with the read pointer. When you call CmtReleaseTSQReadPtr, you must pass a value for the "Items Read" parameter. If you pass 0 for that parameter, all of the data remains in the queue. Based on the documentation, I believe that passing a non-zero value will cause that number of items to be removed from the queue.
I hope this helps.
Jeff