• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Who owns MIDIPacketList memory supplied to MIDISend
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Who owns MIDIPacketList memory supplied to MIDISend


  • Subject: Re: Who owns MIDIPacketList memory supplied to MIDISend
  • From: Doug Wyatt <email@hidden>
  • Date: Mon, 6 Jun 2011 13:04:57 -0700

On Jun 5, 2011, at 11:51 , Eric Kampman wrote:
> But the_packet_list is on the stack, and it doesn't look to me like MIDISend is a synchronous (blocking) call (since the timestamp can be non-zero), so ... does the MIDI data get copied?

yes, it is copied (into memory that is shared with the server process). feel free to allocate on the stack.

> The inference I think is that the data DOES get copied, otherwise the above code would often behave badly.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Who owns MIDIPacketList memory supplied to MIDISend (From: Eric Kampman <email@hidden>)

  • Prev by Date: Re: Who owns MIDIPacketList memory supplied to MIDISend
  • Next by Date: Re: Can MIDIPackets be modified after they are sent?
  • Previous by thread: Re: Who owns MIDIPacketList memory supplied to MIDISend
  • Next by thread: Re: Who owns MIDIPacketList memory supplied to MIDISend
  • Index(es):
    • Date
    • Thread