inline похоже ненужен =)
This commit is contained in:
parent
d6f1dbb321
commit
065f348402
|
@ -57,7 +57,7 @@ void pool_destroy(struct block_pool *bp)
|
||||||
bp->pool = bp->free_pool = bp->busy_pool = NULL;
|
bp->pool = bp->free_pool = bp->busy_pool = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void *pool_alloc(struct block_pool *bp)
|
void *pool_alloc(struct block_pool *bp)
|
||||||
{
|
{
|
||||||
if (!bp->free_pool)
|
if (!bp->free_pool)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -78,7 +78,7 @@ inline void *pool_alloc(struct block_pool *bp)
|
||||||
return &bp->busy_pool->obj;
|
return &bp->busy_pool->obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void pool_free(struct block_pool *bp, void *p)
|
void pool_free(struct block_pool *bp, void *p)
|
||||||
{
|
{
|
||||||
if (!p)
|
if (!p)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue