[Top][All Lists]

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

Re: [Discuss-gnuradio] Block processing order

From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Block processing order
Date: Mon, 7 Dec 2009 17:28:21 -0800
User-agent: Mutt/1.5.18 (2008-05-17)

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.


reply via email to

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