Re: [Discuss-gnuradio] GNURadio retrictions

2014-11-25 Thread Marcus Müller
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As Sylvain said, produce() actually means hey, I'm finished with producing these items, so do what you want in another block (ie. in another thread, so obviously, the things like nitems_written must reflect this. On 11/25/2014 07:42 AM, Mostafa

Re: [Discuss-gnuradio] GNURadio retrictions

2014-11-25 Thread Marcus Müller
Hi Mostafa On 11/25/2014 07:37 AM, Mostafa Alizadeh wrote: No, it doesn't. At least the GNU Radio scheduler won't interrupt a work function I believe in what I see in GNURadio! It forsakes the work's routine somewhere in amidst of it!! This would *really* surprise me. What does forsake

Re: [Discuss-gnuradio] GNURadio retrictions

2014-11-25 Thread Martin Braun
On 11/25/2014 07:37 AM, Mostafa Alizadeh wrote: No, it doesn't. At least the GNU Radio scheduler won't interrupt a work function I believe in what I see in GNURadio! It forsakes the work's routine somewhere in amidst of it!! It really doesn't. Other works() are also running, though.

Re: [Discuss-gnuradio] GNURadio retrictions

2014-11-24 Thread Sylvain Munaut
Please help me find the rational reason! Because calling produce means, I'm done, go ahead and take those sample. Don't call it until you are reall done ... GR is a multi-threaded applications, each work() function is executed in different threads and as soon as you call produce(), other

Re: [Discuss-gnuradio] GNURadio retrictions

2014-11-24 Thread Marcus Müller
Forgot to CC: the list: Hi Mostafa, On 11/23/2014 10:39 PM, Mostafa Alizadeh wrote: I just figured out the following limitation of GNURadio's framework that I want to diacuss them to clarify whether I'm wrong or not: 1- For general blocks with multiple output ports, there is a problem with

Re: [Discuss-gnuradio] GNURadio retrictions

2014-11-24 Thread Mostafa Alizadeh
Hi Marcus, On Mon, Nov 24, 2014 at 1:33 AM, Marcus Müller marcus.muel...@ettus.com wrote: Hi Mostafa, On 11/23/2014 10:39 PM, Mostafa Alizadeh wrote: I just figured out the following limitation of GNURadio's framework that I want to diacuss them to clarify whether I'm wrong or not:

Re: [Discuss-gnuradio] GNURadio retrictions

2014-11-24 Thread Mostafa Alizadeh
On Mon, Nov 24, 2014 at 4:11 PM, Sylvain Munaut 246...@gmail.com wrote: Please help me find the rational reason! Because calling produce means, I'm done, go ahead and take those sample. Don't call it until you are reall done ... GR is a multi-threaded applications, each work() function is

[Discuss-gnuradio] GNURadio retrictions

2014-11-23 Thread Mostafa Alizadeh
Hello GNURadioers! I've been working with GNURadio since about one year ago. I just figured out the following limitation of GNURadio's framework that I want to diacuss them to clarify whether I'm wrong or not: 1- For general blocks with multiple output ports, there is a problem with the amount