Jeff Layton has uploaded this change for review.
support: add a gsh_refstr type and functions
Create a new structure that consists of an atomic refcount value and a
flexarray that is intended to hold a string. When the refcount reaches
zero, then the object will be freed.
Unfortunately, the liburcu version currently in epel7 doesn't have
urcu_ref_get_unless_zero, so we check for that and provide a
copypasta'ed version if it isn't present.
Change-Id: I742e1fff3e47646e64fec235fad461b206924458
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
M src/CMakeLists.txt
M src/include/config-h.in.cmake
A src/include/gsh_refstr.h
M src/support/CMakeLists.txt
A src/support/refstr.c
5 files changed, 88 insertions(+), 0 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/25/432325/1
To view, visit change 432325. To unsubscribe, or for help writing mail filters, visit settings.