• 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: What's possible within a Notifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's possible within a Notifier


  • Subject: Re: What's possible within a Notifier
  • From: "Duane Murphy" <email@hidden>
  • Date: Wed, 19 Feb 2003 07:34:56 -0800

--- At Wed, 19 Feb 2003 12:10:03 +0000, Mark Thomas wrote:

>Out of interest, how big is the Buffer ?? <1K or <10K

The OT memory allocator does not have a fixed size buffer.

The way that the OT memory allocator works is by managing its own blocks
of memory allocated from the global system allocator. If OT allocator
runs out of memory it notes that fact and the next opportunity that is
safe it will increase its memory allocation block.

Likewise if you allocate memory at a safe (non-interrupt) time, I expect
that the allocator should not fail as it will just grow the area as needed.

There is no upper limit (within reason). It just might not be possible to
allocate more memory at the time that it is requested.

>> --- At Fri, 14 Feb 2003 17:40:49 +0000, Mark Thomas wrote:
>>
>>> From what I can gather from the docs, that you must use the
OTMemAlloc and
>>> OTMemFree calls for any memory stuff, as basically you are running at
>>> interrupt time on 9.x. So the usually interrupt safe coding is
>required, and
>>> to be quick in what you do. (X your are a separate thread from what
>I'm seen
>>> from the debugger.)
>>
>> While I cant specifically answer your question concerning notifiers. I
>> want to reiterate that OTMemAlloc can and will fail. OTMemAlloc is an
>> interrupt safe sub-allocator with a small amount of memory to work with.
>> You _must_ be prepared for OTMemAlloc to fail.
>>
>> Just a friendly warning from experience. :-)

...Duane
_______________________________________________
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.

References: 
 >Re: What's possible within a Notifier (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: error -3213
  • Next by Date: Open Transport file transfers
  • Previous by thread: Re: What's possible within a Notifier
  • Next by thread: NSURL and response header
  • Index(es):
    • Date
    • Thread