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;
|
||||
}
|
||||
|
||||
inline void *pool_alloc(struct block_pool *bp)
|
||||
void *pool_alloc(struct block_pool *bp)
|
||||
{
|
||||
if (!bp->free_pool)
|
||||
return NULL;
|
||||
|
@ -78,7 +78,7 @@ inline void *pool_alloc(struct block_pool *bp)
|
|||
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)
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue