As described in my previous post today, I need to receive packets of varying sizes from the Com port, and pass them via TSQ to a function for processing.
There does not seem to be any way to easily change the threshold value of a TSQ.
Is there some technique for using a TSQ to route variable length data packets?
Or does one have to uninstall the TSQ function and reinstall it with a new threshold value each time the threshold needs to change?
I think you can use the function "CmtGetTSQAttribute (..., ATTR_TSQ_ITEMS_IN_QUEUE, ...)" inside your TSQ callback, and process data only when the items in queue comply to the lenght required.