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, 18 Jul 2019 19:58:24 +0000 (15:58 -0400)
commit46307ffe11537f48a43ff90f3b3b048eeea248f1
treeab762d19a99ed1a6b2114c6f4e4323ede3b562ce
parent578e21bdc951a54e34fe539b64e446557b703206
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.02668 seconds and 5 git commands to generate.