This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Best way to flush a QMSS queue

Hi All,

         I see two ways of flushing/clearing a queue of its descriptors.

Approach 1

do

{

         hd = Qmss_queuePop(Queue_Number);

} while (hd != NULL);

Approach 2

    Qmss_queueEmpty (Queue_Number);

Please let me know will there be any traces/uncleared left in any of the above two approaches. 

Thanks

RC Reddy