I have a thread with an area that I prefer to hang a read on a TSQ instead of installing a callback for it. Since CmtReadTSQData(), or CmtNewTSQ(), doesn't have an option to enable/disable event processing (likeCmtNewLock()), I'd sure like know how it behaves.
Hello Jon, The function CmtReadTSQData() blocks until the number of items in the queue are greater than or equal to the number requested or the timeout expires. This means that events are not processed while CmtReadTSQData() is waiting for data (or timeout). Also, you may find the shipping examples at \samples\utility\threading\ThreadSafeQueue\ of assistance.
Jeremiah Cox Applications Engineer National Instruments http://www.ni.com/ask