version 1.2, 2013/05/30 09:07:33
|
version 1.4.18.1, 2015/06/25 00:36:48
|
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, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 | 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 407 mpool_free(mpool_t * __restrict mp, void * __restrict
|
Line 407 mpool_free(mpool_t * __restrict mp, void * __restrict
|
int idx; |
int idx; |
struct tagAlloc *m, *tmp; |
struct tagAlloc *m, *tmp; |
|
|
assert(data); | if (!data) |
| return 0; |
if (!mp) { |
if (!mp) { |
elwix_SetErr(EINVAL, "Pool not specified"); |
elwix_SetErr(EINVAL, "Pool not specified"); |
return -1; |
return -1; |
Line 732 char *
|
Line 733 char *
|
mpool_xstrdup(const char *str) |
mpool_xstrdup(const char *str) |
{ |
{ |
return mpool_strdup(elwix_mpool, str, elwix_Prog); |
return mpool_strdup(elwix_mpool, str, elwix_Prog); |
|
} |
|
|
|
/* |
|
* mpool_xstatistics() - elwix memory pool statistics wrapper |
|
* |
|
* @cb = Export statistics to callback |
|
* return: none |
|
*/ |
|
void |
|
mpool_xstatistics(mpool_stat_cb cb) |
|
{ |
|
mpool_statistics(elwix_mpool, cb); |
} |
} |