ref-internal.h: do not increment ref count if release not set
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 22 Nov 2016 09:30:33 +0000 (04:30 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 18:09:07 +0000 (14:09 -0400)
commit0c747e0de732637ad24f5d7c8c8671a55adcaf56
tree427219dae516e26407c4d169bd8e9be9f245e360
parentb6ba76200642004653facacb9625e5cc7c7136e1
ref-internal.h: do not increment ref count if release not set

A singleton BT object can choose to opt-out of the reference count
mechanism. The way to do this is to set the release callback to
NULL. When this is the case, do not increment its reference count;
keep it at its original value.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/ref-internal.h
This page took 0.038264 seconds and 4 git commands to generate.