Home bvckup hamachi yafe halloc bff libppf dnsfix sign Hierarchical Allocator Hierarchical allocator (halloc) is an extension to a standard malloc/free interface that simplifies tasks of memory disposal in situations when allocated structures exhibit hierarchical properties. Overview Memory blocks allocated through halloc can be organized into a hierarchy of parent-child relationships. These relationships are taken into an account when memory block is being freed - disposing the block automatically frees all its children in a recursive way. For example: struct foo * p = h_malloc(sizeof(*p)); struct bar * q = h_calloc(sizeof(*q), 10); struct tmp * r = h_calloc(sizeof(*r), 20); hattach(q, p); /* q is now a child of p */ hattach(r, q); /* r is now a child of q and a grandchild of p */ h_free(p); The h_free() call disposes not just the 'p' block, but the 'q' and 'r' blocks as well. Download Latest version of fast and portable implementation is 1.2.0, released May 18, 2004: halloc-1.2
Main Page Data Structures Files libevent Documentation Introduction libevent is an event notification library for developing scalable network servers. The libevent API provides a mechanism to execute a callback function when a specific event occurs on a file descriptor or after a timeout has been reached. Furthermore, libevent also support callbacks due to signals or regular timeouts. libevent is meant to replace the event loop found in event driven network servers. An application just needs to call event_dispatch() and then add or remove events dynamically without having to change the event loop. Currently, libevent supports /dev/poll, kqueue(2), select(2), poll(2) and epoll(4). It also has experimental support for real-time signals. The internal event mechanism is completely independent of the exposed event API, and a simple update of libevent can provide new functionality without having to redesign the applications. As a result, Libevent allows for portable application developmen