Allow lttng_directory_handle to be moved
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 1 May 2019 14:50:55 +0000 (10:50 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 5 Sep 2019 20:39:13 +0000 (16:39 -0400)
commita0c5463ec7ad08611d12506ebecd9d06643e0169
tree718e0be9fecd134d39442de01319a4ddf7818fb1
parent1197e6513ca82a23eb102b18b026ba1520151622
Allow lttng_directory_handle to be moved

Implement a "move" method (akin to C++'s move semantics) which allows
the transfer of the contents/ownership of a stack-allocated directory
handle to another object.

A moved directory handle must no longer be used after the "move"
operation. The original moved handle is invalidated in the hope
of catching erroneous uses of this API quickly.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/compat/directory-handle.c
src/common/compat/directory-handle.h
This page took 0.025583 seconds and 4 git commands to generate.