Re: [Jack-Devel] Proposal: JACK MIDI API extension for system exclusive messages
On Fri, Apr 1, 2011 at 2:38 AM, torbenh <[hidden]> wrote:
> i am not sure if we should do this implicit memory management.
> maybe allocating a blob, and then putting the blob id into the midi
> event would be smarter.
That sounds like a good idea.
> we still need to manage references to blobs.
> and we need an RT safe memory management in shm.
> (which probably needs to be threadsafe too.... tricky :)
The only calls that I see requiring memory management are:
jack_midi_blob_create
jack_midi_blob_free
... which, AFAICS, shouldn't be called in the RT thread and shouldn't
be considered RT safe.
Does that change anything?
I'm probably not aware of all of the implications of shared memory
management here. Please pardon my naivety. I would very much
appreciate being enlightened, or a URL to a document that would
enlighten me. :)
--
Devin Anderson
devin (at) charityfinders (dot) com
CharityFinders - http://www.charityfinders.com/
synthclone - http://synthclone.googlecode.com/
1301676342.4507_0.ltw:2,a <AANLkTinW2en0MG=sWMEi5cGMeWO9Ees_ngZ5veDmbgNT at mail dot gmail dot com>