Re: non blocking memory allocation api
Re: non blocking memory allocation api
- Subject: Re: non blocking memory allocation api
- From: Mike Smith <email@hidden>
- Date: Mon, 21 Mar 2005 01:52:20 -0800
Yes, I'm digging up old threads. But this one deserves a vigorous
reply:
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.
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.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden