commit | 3c65b7a91673895d69dfad8d022865af8a42a305 | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <thierry.fournier@ozon.io> | Thu Aug 31 20:35:18 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Sep 11 18:59:40 2017 +0200 |
tree | a64febcbbaf366663779047ac42b152dfc0cf92f | |
parent | b01d28f9766c96ebe4d29b9e8cc0c24c689fc03f [diff] |
MINOR: xref: Add a new xref system xref is used to create a relation between two elements. Once an element is released, it breaks the relation. If the relation is already broken, it frees the xref struct. The pointer between two elements is a sort of refcount with max value 1. The relation is only between two elements. The pointer and the type of element a and b are conventional. Note that xref is initialised from Lua files because Lua is the only one user.