Thanks for the answer Mike. By polling I meant dequeing. The issue is that in some classes I have a queue that I use in some applications, but not in others. I could add a boolean to the class to determine if it should write to the queue, but if there is not penalty for queing without dequieng will make things easier.
(i.e. If I can set a limit of memory to use so when is reached that the queue will automatically delete older elements)
Regards,
Hernan