On Jun 4, 2009, at 7:25 AM, cocoa learner wrote:
I want one of my object, not to be paged out unless and until I am
done with
my object. The way mlock() behave.
Is there any way to do this in cocoa?
First answer: No. You can't lock all of the code and metadata
associated with the object, so you could still get page faults when
you try to call methods. Also, method dispatch sometimes takes locks,
which is as bad as a page fault depending what you're trying to do.
Second answer: Use mlock().
--
Greg Parker gpar...@apple.com Runtime Wrangler
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com