discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Thread Synchronization


From: Tom Lutz
Subject: Re: [Discuss-gnuradio] Thread Synchronization
Date: Wed, 13 May 2009 16:35:54 -0400

> This might work on x86 machines, but isn't safe on machines
> with weak memory ordering across processors (e.g., PPC, Itanium).
> You'd need to introduce architecture specific memory barriers.
>
> Can you put the mutex at a higher level (e.g., in the object that
> has the gr_oscope_guts)?
>
> Eric
>

Wow, I totally didn't think of this.  Yes, I can place the mutex
inside gr_oscope_f, outside of a 'for' loop that processes a block of
samples (hopefully a block greater than 1).

-Tom




reply via email to

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