2 ms·
Sorry, didn't get around to that yet as it's trivial and used enough internally that I figured it has enough test coverage for now. The c7_list struct is embedd
by codr7 7y ago
Sorry, didn't get around to that yet as it's trivial and used enough internally that I figured it has enough test coverage for now. The c7_list struct is embedded in the items, rbpool [0] uses it to keep track of nodes [1] and slabs [2] for example. Note that the same structure is used as root.
[0] https://github.com/codr7/libcodr7/blob/master/source/codr7/rbpool.h https://github.com/codr7/libcodr7/blob/master/source/codr7/r...
[1] https://github.com/codr7/libcodr7/blob/master/source/codr7/rbnode.h https://github.com/codr7/libcodr7/blob/master/source/codr7/r...
[2] https://github.com/codr7/libcodr7/blob/master/source/codr7/rbslab.h https://github.com/codr7/libcodr7/blob/master/source/codr7/r...