[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] initial gr-audio-portaudio
From: |
Stephane Fillod |
Subject: |
Re: [Discuss-gnuradio] initial gr-audio-portaudio |
Date: |
Mon, 13 Mar 2006 21:34:54 +0100 |
User-agent: |
Mutt/1.5.11 |
On Mon, Mar 13, 2006 at 03:52:25PM +0100, Martin Dvh wrote:
[..]
> > The code should be portable. I was missing the native Win32 call for
> > mutex_trylock, so someone will have to find it, and define
> > OMNI_MUTEX_TRYLOCK_IMPLEMENTATION in src/lib/omnithread/ot_nt.h,
> > with appropriate semantic (return value).
> I think you can do this with TryEnterCriticalSection
It does fit indeed. It has just been checked in.
Bob, Thomas, please cvs update gnuradio-core AND gr-audio-portaudio at
same time since I changed the logic of omni_mutex::trylock (returns true
if it grabbed the lock), in order to comply with comment in omnithread.h.
> You could also use the omni_semaphore class defined in
> gnuradio-core/src/lib/omnithread/nt.cc
> This latter one uses CreateSemaphore and WaitForSingleObject with some
> wrapper code.
> (you probably have to change all defines if you change to using
> omni_semaphore)
The gr-audio-portaudio code is using omni::mutex and omni::cond calls.
Actually, they are not used for mutual exclusion, but simply as a
notification mean (there's more room/there's more data in the ringbuffer).
Good Lu*k Martin for your presentation. We can wait next week to see whether
James Brown sounds even better with gr-audio-portaudio under Windows ;-)
--
Stephane
- Re: [Discuss-gnuradio] gri_ringbuffer.{h,cc}, (continued)
- Re: [Discuss-gnuradio] gri_ringbuffer.{h,cc}, Stephane Fillod, 2006/03/13
- Re: [Discuss-gnuradio] initial gr-audio-portaudio, Thomas Schmid, 2006/03/12
- Re: [Discuss-gnuradio] initial gr-audio-portaudio, Robert McGwier, 2006/03/12
- Re: [Discuss-gnuradio] initial gr-audio-portaudio, Stephane Fillod, 2006/03/13
- Re: [Discuss-gnuradio] initial gr-audio-portaudio, Thomas Schmid, 2006/03/12
- Re: [Discuss-gnuradio] initial gr-audio-portaudio, Stephane Fillod, 2006/03/13
- Re: [Discuss-gnuradio] initial gr-audio-portaudio, Thomas Schmid, 2006/03/13
- Re: [Discuss-gnuradio] initial gr-audio-portaudio, Martin Dvh, 2006/03/13
- Re: [Discuss-gnuradio] initial gr-audio-portaudio,
Stephane Fillod <=
- Re: [Discuss-gnuradio] initial gr-audio-portaudio, Robert McGwier, 2006/03/13
Re: [Discuss-gnuradio] FFTW 3.1/ PortAudio, Martin Dvh, 2006/03/12