Ignore:
Timestamp:
11/27/14 14:19:19 (7 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
d7fd648
Parents:
21f5f0f
Message:

Fixes bug where packets could be destroyed by unregistered threads
We now destroy the packet object cache thread caches before unresistering a thread

Also includes some whitespace fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/data-struct/object_cache.h

    ra49a9eb r6e41e73  
    2121
    2222DLLEXPORT void libtrace_ocache_init(libtrace_ocache_t *oc, void *(*alloc)(void), void (*free)(void*),
    23                                                                           size_t thread_cache_size, size_t buffer_size, bool limit_size);
     23                                    size_t thread_cache_size, size_t buffer_size, bool limit_size);
    2424DLLEXPORT int libtrace_ocache_destroy(libtrace_ocache_t *oc);
    2525DLLEXPORT size_t libtrace_ocache_alloc(libtrace_ocache_t *oc, void *values[], size_t nb_buffers, size_t min_nb_buffers);
    2626DLLEXPORT size_t libtrace_ocache_free(libtrace_ocache_t *oc, void *values[], size_t nb_buffers, size_t min_nb_buffers);
    2727DLLEXPORT void libtrace_zero_ocache(libtrace_ocache_t *oc);
     28DLLEXPORT void libtrace_ocache_unregister_thread(libtrace_ocache_t *oc);
    2829#endif // LIBTRACE_OBJECT_CACHE_H
    29 
    30 
Note: See TracChangeset for help on using the changeset viewer.