• 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: Open Transport contexts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open Transport contexts


  • Subject: Re: Open Transport contexts
  • From: Quinn <email@hidden>
  • Date: Wed, 12 Feb 2003 00:12:35 +0000

At 12:00 -0700 11/2/03, Pietrzak, Bryan wrote:
OK, question, my carbon CFM app looks like this:

SomeApp
MyLibrary
OpenPlayLib

- OpenPlayLib initializes OpenTransport using the kInitOTForExtensionMask

- OpenPlay does not have any API to return its OTClientContextPtr

- MyLibrary needs to call OTAllocMemInContext, but it does not use any OT
calls directly, it's going through the OpenPlay APIs, I just need to
allocate memory in an interrupt. I'm not sharing OP assets or anything, I
just need interrupt time memory allocations on OS 8/9.

- SomeApp may or may not initialize OpenTransport, I don't know, it's out of
my control. (so as I understand things, I can't use NULL for the client
context)

I've read "Understanding Open Transport Asset Tracking"
(http://developer.apple.com/technotes/tn/tn1173.html/) but it's not 100%
clear to me if I can initialize OT again in MyLibrary using the
kInitOTForExtensionMask again.

Yes you can, and indeed you should. An arbitrary number of libraries can use kInitOTForExtensionMask. OTOH, only the main application should use kInitOTForApplicationMask. Everything else should use kInitOTForExtensionMask.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Media Type of Shared Volume
  • Next by Date: Sleeping laptop, running code?
  • Previous by thread: Open Transport contexts
  • Next by thread: Sleeping laptop, running code?
  • Index(es):
    • Date
    • Thread