Re: non blocking memory allocation api
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Jan 26, 2005, at 11:53 PM, Parav Pandit wrote: I am seaching for API in IOKit which provides non blocking memory allocation functionallity. But I think IOkit has only IOMalloc one, is there any non blocking api available through i can allocate memory, when i held the spin lock? Don't do this. Don't go looking for a non-blocking memory allocation primitive. = Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... Yes, I'm digging up old threads. But this one deserves a vigorous reply: Fix your algorithm so that you don't need to do this with your spinlock held. As a general rule, *never* call out of your code while you hold an exclusive lock. This email sent to site_archiver@lists.apple.com
participants (1)
-
Mike Smith