Re: [Discuss-gnuradio] put a block to sleep

2014-05-21 Thread Mostafa Alizadeh
It doesn't work for me! On Wed, May 21, 2014 at 7:21 PM, Activecat wrote: > Try this: On the flowgraph Options, configure the Max Number Of Output to > 1. > > > > On Wed, May 21, 2014 at 9:54 PM, Mostafa Alizadeh > wrote: > >> *After producing one block of data,* the scheduler always come back

Re: [Discuss-gnuradio] put a block to sleep

2014-05-21 Thread Mostafa Alizadeh
Hi Martin, *blocks.head* isn't appropriate for my case because this is not a test! I searched for managing a thread, I found this : http://www.boost.org/doc/libs/1_48_0/doc/html/thread/synchronization.html#thread.synchronization.condvar_ref which is a part of boost library. This is exactly wha

Re: [Discuss-gnuradio] put a block to sleep

2014-05-21 Thread Martin Braun
On 21.05.2014 11:53, Mostafa Alizadeh wrote: Hello everybody, I want to connect a source to a sink block but there must be a sort of synchronization between them. The sink block should ask the source to generate data stream on some specific instances. Between these instances, the source block mu

Re: [Discuss-gnuradio] put a block to sleep

2014-05-21 Thread Activecat
On Wed, May 21, 2014 at 5:53 PM, Mostafa Alizadeh wrote: > Hello everybody, > > I want to connect a source to a sink block but there must be a sort of > synchronization between them. The sink block should ask the source to > generate data stream on some specific instances. Between these instances,

[Discuss-gnuradio] put a block to sleep

2014-05-21 Thread Mostafa Alizadeh
Hello everybody, I want to connect a source to a sink block but there must be a sort of synchronization between them. The sink block should ask the source to generate data stream on some specific instances. Between these instances, the source block must put to the sleep or be disabled. How could I