Re: [LAD] Communicating between python UI and C++ engine for real time audio?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Paul Davis <paul@...>
Cc: <linux-audio-dev@...>
Date: Thursday, November 3, 2011 - 12:32 am

--20cf3056431f70c47d04b0c9b78c
Content-Type: text/plain; charset=ISO-8859-1

> Yes, that's certainly feasible. RCU = Read-Copy-Update is a software

Thanks Paul. I'm wondering if it might be easier to begin with to have my
python side only read the shared data and send messages to the c engine for
writes. Is there a relatively straightforward way to have a python process
have read access to a block of memory that the c engine has full access to?
Would this simplify the concurrency issues?

thanks for the tips everyone.
Iain

--20cf3056431f70c47d04b0c9b78c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yes, that's =
certainly feasible. RCU =3D Read-Copy-Update is a software
pattern for dealing with situations where you need to update a complex
data structure while it is in use. The general approach is to make a
copy, modify the copy, and the atomically (normally) swap a pointer to
the original for a pointer to the new one. somehow you have to clean
up the old one.

you won't find this written up in any texts on programming, i think.
its in wide use in the linux kernel, and there have been attempts to
create some general purpose user space libraries that do it too. my
own sense is that almost every implementation of RCU will end up being
incredibly context (app) dependent. we use it a lot in ardour. its
quite complex.Thanks Paul. I'm won=
dering if it might be easier to begin with to have my python side only read=
the shared data and send messages to the c engine for writes. Is there a r=
elatively straightforward way to have a python process have read access to =
a block of memory that the c engine has full access to? Would this simplify=
the concurrency issues?
thanks for the tips everyone.Iain=
=A0

--20cf3056431f70c47d04b0c9b78c--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] Communicating between python UI and C++ engine for..., Gabriel M. Beddingfield, (Thu Nov 3, 2:05 am)
Re: [LAD] Communicating between python UI and C++ engine for..., Vytautas Jancauskas, (Thu Nov 3, 7:49 am)
Re: [LAD] Communicating between python UI and C++ engine for..., Iain Duncan, (Thu Nov 3, 12:32 am)