LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Does CmtReadTSQData() process events while waiting?

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.

BTW I'm using NT.
0 Kudos
Message 1 of 2
(2,939 Views)
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
Message 2 of 2
(2,939 Views)