discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] topblock.wait() never returns even after i stop()


From: Sylvain Munaut
Subject: Re: [Discuss-gnuradio] topblock.wait() never returns even after i stop() it.
Date: Thu, 31 Mar 2016 10:10:26 +0200

Hi,

> I had a lock(), unlock() pair around the stop - which might have been
> causing the problem. i.e.
>
> topblock.lock()
> ...
>
> topblock.stop()
> topblock.unlock()
>
> Now the wait() returns in the loop that was waiting.
>
> It now works for USRP but I'd like to know why this bothered the USRP in the
> first place. It seems to work differently with the bladerf (i.e. the lock,
> unlock pair did not seem to pose a problem for the bladerf()).
>
> Must be missing something....

Well you can't call stop() if you're currently locked().

If you do, then the behavior will be unpredictable. The details of why
it fails with one and not the other when you're doing something that's
not supported are kind of irrelevant.

Cheers,

   Sylvain



reply via email to

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