Diff for /libelwix/inc/elwix/ampool.h between versions 1.5.68.1 and 1.8

version 1.5.68.1, 2022/10/23 23:46:01 version 1.8, 2025/08/21 15:43:00
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 - 2022Copyright 2004 - 2024
         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 90  typedef struct _tagMPool { Line 90  typedef struct _tagMPool {
 #define mpool_lock(x)   (assert((x)), pthread_mutex_lock(&(x)->pool_mtx))  #define mpool_lock(x)   (assert((x)), pthread_mutex_lock(&(x)->pool_mtx))
 #define mpool_unlock(x) (assert((x)), pthread_mutex_unlock(&(x)->pool_mtx))  #define mpool_unlock(x) (assert((x)), pthread_mutex_unlock(&(x)->pool_mtx))
   
   #ifdef __cplusplus
   extern "C" {
   #endif
   
 typedef int (*mpool_stat_cb)(unsigned int, unsigned int, unsigned int,   typedef int (*mpool_stat_cb)(unsigned int, unsigned int, unsigned int, 
                 void *, unsigned int);                  void *, unsigned int);
   
Line 127  int mpool_purge(mpool_t * __restrict mp, unsigned int  Line 131  int mpool_purge(mpool_t * __restrict mp, unsigned int 
  */   */
 void *mpool_malloc(mpool_t * __restrict mp, unsigned int size, const char *memname);  void *mpool_malloc(mpool_t * __restrict mp, unsigned int size, const char *memname);
 /*  /*
    * mpool_calloc() - Multiple memory block allocation
    *
    * @mp = Memory pool
    * @nmemb = Number of memory blocks
    * @size = Size
    * @memname = Optional memory block name
    * return: NULL error or !=NULL ok allocated memory
    */
   void *mpool_calloc(mpool_t * __restrict mp, u_int nmemb, u_int size, const char *memname);
   /*
  * mpool_free() Free allocated memory with mpool_alloc()   * mpool_free() Free allocated memory with mpool_alloc()
  *   *
  * @mp = Memory pool   * @mp = Memory pool
Line 285  void mpool_dump(mpool_t * __restrict mp, const char *f Line 299  void mpool_dump(mpool_t * __restrict mp, const char *f
  */   */
 int mpool_dump2(mpool_t * __restrict mp, char *str, int strlen);  int mpool_dump2(mpool_t * __restrict mp, char *str, int strlen);
   
   #ifdef __cplusplus
   }
   #endif
   
 #endif  #endif

Removed from v.1.5.68.1  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>