Le 12/05/14 07:58, Chris Angelico a écrit :

Well, the first thing I'd try is simply asking for more data when
you're ready for it - can you get five seconds' of data all at once?
Obviously this won't work if your upstream buffers only a small
amount, in which case your thread is there to do that buffering; also,
if you can't absolutely *guarantee* that you can process the data
quickly enough, every time, then you need to use the queue to buffer
that.

But otherwise, it sounds like a quite reasonable way to do things.

ChrisA


Ok, thanks a lot!
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to