summaryrefslogtreecommitdiffstats
path: root/test/handle
Commit message (Collapse)AuthorAgeFilesLines
* handle: Support for releasing management of valuesWilliam A. Kennington III2019-07-081-0/+21
| | | | | | | | Sometimes we want to be able to break the value out of the container and unmanage it. Change-Id: I1ded8571561760f7adf8bbf9a24cf21c989e4898 Signed-off-by: William A. Kennington III <wak@google.com>
* handle/copyable: Implement copyable handleWilliam A. Kennington III2019-03-291-0/+347
| | | | | | | | | | | This is a generic handle type that holds a resource and uses RAII to call a user defined function when the resource is copied or destroyed. Tested: Built and run through unit tests. Change-Id: I3d23544b2e7c8d8c6686effc03b3b7433ea18bf5 Signed-off-by: William A. Kennington III <wak@google.com>
* handle/managed: Implement non-copyable handleWilliam A. Kennington III2019-03-291-0/+209
This is a generic handle type that holds a resource and uses RAII to call a user defined function when the resource is destroyed. A future change will implement a smart file descriptor based on this interface. A follow up change will implement the copyable version. Tested: Built and run through unit tests. Change-Id: Ia8da1d662319e8fb58380ed4979bcf1b74f66dfb Signed-off-by: William A. Kennington III <wak@google.com>
OpenPOWER on IntegriCloud