ucx/map.h

changeset 107
86b19c98b5fd
parent 103
08018864fb91
child 109
75cb6590358b
     1.1 --- a/ucx/map.h	Fri Jun 21 11:18:24 2013 +0200
     1.2 +++ b/ucx/map.h	Thu Jul 11 17:32:48 2013 +0200
     1.3 @@ -55,6 +55,7 @@
     1.4  typedef void*(*ucx_map_coder)(void*,void*,size_t*);
     1.5  
     1.6  struct UcxMap {
     1.7 +    UcxAllocator  *allocator;
     1.8      UcxMapElement **map;
     1.9      size_t        size;
    1.10      size_t        count;
    1.11 @@ -80,6 +81,7 @@
    1.12  
    1.13  
    1.14  UcxMap *ucx_map_new(size_t size);
    1.15 +UcxMap *ucx_map_new_allocator(size_t size, UcxAllocator *allocator);
    1.16  void ucx_map_free(UcxMap *map);
    1.17  /* you cannot clone maps with more than 390 mio entries */
    1.18  int ucx_map_copy(UcxMap *restrict from, UcxMap *restrict to,

mercurial