mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-04 04:49:08 +08:00
25 lines
455 B
C
25 lines
455 B
C
#include "lib_acl.h"
|
|
|
|
int main(void)
|
|
{
|
|
ACL_DBUF_POOL *dbuf = acl_dbuf_pool_create(8192);
|
|
char *huge_ptr;
|
|
int i;
|
|
|
|
for (i = 0; i < 10240; i++)
|
|
acl_dbuf_pool_alloc(dbuf, 128);
|
|
|
|
huge_ptr = acl_dbuf_pool_alloc(dbuf, 81920);
|
|
|
|
for (i = 0; i < 10240; i++)
|
|
acl_dbuf_pool_alloc(dbuf, 128);
|
|
|
|
acl_dbuf_pool_free(dbuf, huge_ptr);
|
|
|
|
acl_dbuf_pool_destroy(dbuf);
|
|
|
|
printf("---------------OK--------------------\r\n");
|
|
|
|
return 0;
|
|
}
|