version 1.3, 2014/01/29 14:16:53
|
version 1.4, 2015/06/25 17:53:49
|
Line 12 terms:
|
Line 12 terms:
|
All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
|
|
Copyright 2004 - 2014 | Copyright 2004 - 2015 |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
|
|
Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
Line 79 typedef struct _tagMPool {
|
Line 79 typedef struct _tagMPool {
|
} pool_bytes; |
} pool_bytes; |
struct { |
struct { |
unsigned long max; |
unsigned long max; |
|
unsigned long real; |
unsigned long curr; |
unsigned long curr; |
} pool_quota; |
} pool_quota; |
|
|
Line 198 unsigned long mpool_setquota(mpool_t * __restrict mp,
|
Line 199 unsigned long mpool_setquota(mpool_t * __restrict mp,
|
* mpool_getquota() - Get memory quota |
* mpool_getquota() - Get memory quota |
* |
* |
* @mp = Memory pool |
* @mp = Memory pool |
* @currmem = Return current memory | * @currmem = Return current memory usage |
| * @realmem = Return current real memory usage |
* @maxmem = Return max quota size |
* @maxmem = Return max quota size |
* return: none |
* return: none |
*/ |
*/ |
void mpool_getquota(mpool_t * __restrict mp, unsigned long *currmem, |
void mpool_getquota(mpool_t * __restrict mp, unsigned long *currmem, |
unsigned long *maxmem); | unsigned long *realmem, unsigned long *maxmem); |
/* |
/* |
* mpool_statistics() - Dump statistics from memory pool buckets |
* mpool_statistics() - Dump statistics from memory pool buckets |
* |
* |
Line 253 void mpool_xfree(void * __restrict data);
|
Line 255 void mpool_xfree(void * __restrict data);
|
* return: =NULL error or !=NULL new allocated string |
* return: =NULL error or !=NULL new allocated string |
*/ |
*/ |
char *mpool_xstrdup(const char *str); |
char *mpool_xstrdup(const char *str); |
|
/* |
|
* mpool_xstatistics() - elwix memory pool statistics wrapper |
|
* |
|
* @cb = Export statistics to callback |
|
* return: none |
|
*/ |
|
void mpool_xstatistics(mpool_stat_cb cb); |
|
/* |
|
* mpool_xdump() - Dump elwix memory pool statistics |
|
* |
|
* @fmt = format string |
|
* @... = argument(s) |
|
* return: none |
|
*/ |
|
void mpool_xdump(const char *fmt, ...); |
|
|
|
|
#endif |
#endif |