10-10-2006 04:54 PM
10-11-2006 10:39 AM
10-11-2006 10:53 AM
10-11-2006 11:52 AM
Thanks Pat. If the algorithm is correct, I have questions about the queue write and read:
CmtInstallTSQCallback (tsqHandle, EVENT_TSQ_ITEMS_IN_QUEUE,
600, QueueCallback, NULL,
CmtGetCurrentThreadID(), &plotDataCallbackID);
CmtWriteTSQData (tsqHandle, writeBuffer, 60, 0, NULL);
CmtReadTSQData (tsqHandle, readBuffer, 600, TSQ_INFINITE_TIMEOUT, 0);
The above functions are what I used for my queue. I am wondering when my QueueCallback will get called? According to the explaination of EVENT_TSQ_ITEMS_IN_QUEUE, the callback will be called when a. items are written to the queue. and b. number of items exceeds 600. However, as I debug my code, I noticed the QueueCallback will only be called when the queue is full (60000). What happened?
Thanks.
10-11-2006 04:26 PM