discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] PDU_to_tagged_stream consumes 100% CPU even thoug


From: Sylvain Munaut
Subject: Re: [Discuss-gnuradio] PDU_to_tagged_stream consumes 100% CPU even though it is throttled!
Date: Thu, 15 Jan 2015 19:36:52 +0100

Hi,


>> To me it look like all it's missing is a
>> basic_block::delete_head_blocking with a timeout. Then the
>> pdu_to_tagged_stream_impl::calculate_output_stream_length could just
>> use that with a reasonably small timeout (like 100ms or so) so that it
>> waits on a message but if none comes, it still handout control back to
>> the caller from time to time (which I think is required for stop() to
>> work).
>>
>> Is there anything that wouldn't work with this approach ?
>
> A change to a blocking call with a timeout would work as a "short" term fix.

Ok, I'll code and test that solution.

Cheers,

   Sylvain



reply via email to

[Prev in Thread] Current Thread [Next in Thread]