Re: [LAD] making sense of Jack MIDI; or, is this an appropriate use for Jack?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Harry van Haaren <harryhaaren@...>
Cc: <linux-audio-dev@...>
Date: Sunday, February 17, 2013 - 10:04 pm

On Sun, Feb 17, 2013 at 4:41 PM, Harry van Haaren wrote:

But you're not guaranteed to write that many bytes at a time. If the
write of a chunk of bytes (your event object) to a ringbuffer wraps,
you probably wind up with two writes. A read from another thread may
get an incomplete object. What happens then?

> I'm very interested in why copying C++ objects like this is a bad idea.

I did make a suggestion.

>

My suggestion has nothing to do with mem-pools or placement new. That
depends on your memory management strategy, which is orthogonal to
this discussion.

>>

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

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

Messages in current thread:
Re: [LAD] making sense of Jack MIDI; or, is this an appropri..., Paul Coccoli, (Sun Feb 17, 10:04 pm)
Re: [LAD] making sense of Jack MIDI; or, is this an appropri..., Pedro Lopez-Cabanillas, (Fri Feb 15, 5:53 pm)
Re: [LAD] making sense of Jack MIDI; or, is this an appropri..., Pedro Lopez-Cabanillas, (Sat Feb 16, 12:16 pm)
Re: [LAD] making sense of Jack MIDI; or, is this an appropri..., Pedro Lopez-Cabanillas, (Sat Feb 16, 5:22 pm)
Re: [LAD] making sense of Jack MIDI; or, is this an appropri..., Pedro Lopez-Cabanillas, (Sat Feb 16, 9:39 am)
Re: [LAD] making sense of Jack MIDI; or, is this an appropri..., Pedro Lopez-Cabanillas, (Sat Feb 16, 10:03 am)
Re: [LAD] making sense of Jack MIDI; or, is this an appropri..., Pedro Lopez-Cabanillas, (Sat Feb 16, 11:03 am)
Re: [LAD] making sense of Jack MIDI; or, is this an appropri..., Pedro Lopez-Cabanillas, (Fri Feb 15, 7:15 pm)