On Mon, Dec 07, 2009 at 06:18:33PM +0000, Ben Gear wrote:
> Hi all,
> 
> Does anyone know if the scheduler is guaranteed to process blocks in
> the correct order?

Yes it does.

> For example, say you have a block with side
> effects such as writing to a file, could it ever occur that the
> scheduler is processing several work functions for the same block
> concurrently in different threads,  the threads execute at a different
> rate and you end up with a file written out of order?

I'm not exactly following this question.  There is only a single work
method for a given block.  There is only ever a single thread running
the work method of any given instance of a block.

> In a similar manner is accessing block member variables safe?

>From where?  It IS safe from the work methods.  It IS NOT safe from
anywhere else.

Eric


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to