summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* handle: Cleanup noexcept guaranteesWilliam A. Kennington III2019-11-052-12/+16
| | | | | | | | Some of our noexcept guarantees were just wrong, and we weren't providing it for the move constructor when possible. Change-Id: I48452a4f07655d7cc479ca8ab8d744a59c119459 Signed-off-by: William A. Kennington III <wak@google.com>
* util/str: Add string concatentation methodsWilliam A. Kennington III2019-07-082-0/+58
| | | | | Change-Id: I5caf8e0731eb9ac0f18b84d25256ea0068fab03c Signed-off-by: William A. Kennington III <wak@google.com>
* handle: Support for releasing management of valuesWilliam A. Kennington III2019-07-081-0/+25
| | | | | | | | 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: Make it possible to reference stored dataWilliam A. Kennington III2019-07-081-0/+13
| | | | | | | | | Users of the handle often want to be able to reference data they plan to use in their callbacks. This is especially useful for retrieving references to dependency injected interfaces. Change-Id: I2782794d7d8320e3a0dd7f47320e35d75303167a Signed-off-by: William A. Kennington III <wak@google.com>
* signal: Use callCheckErrnoWilliam A. Kennington III2019-07-081-16/+6
| | | | | Change-Id: I75f010a17366550fd9cda550f973ae40951cbcb9 Signed-off-by: William A. Kennington III <wak@google.com>
* autotools: RemoveWilliam A. Kennington III2019-04-262-24/+0
| | | | | | | Meson is now used to build this package in all of the necessary places. Change-Id: I704d5cdd51129d8dc56c6a2456792846a3711778 Signed-off-by: William A. Kennington III <wak@google.com>
* meson: Use declare_dependency for librariesWilliam A. Kennington III2019-04-031-2/+8
| | | | | | | | | Now example binaries and tests don't have to be aware of the nuances for configuring the build to use the library. This makes the project library look like any other system dependency. Change-Id: I9bbf33d32057964011fd8387e742e0d92117f848 Signed-off-by: William A. Kennington III <wak@google.com>
* meson: Style fixWilliam A. Kennington III2019-04-031-2/+1
| | | | | Change-Id: Id6a26d728010638f0a0922e76499d570baba6ae3 Signed-off-by: William A. Kennington III <wak@google.com>
* util/cexec: Implement exception helpersWilliam A. Kennington III2019-03-293-0/+119
| | | | | | | | See src/stdplus/util/cexec.hpp callCheckErrno for the motivation behind this change. Change-Id: I0225b87398b632624f2ef8ccd6c00b5dd6b7e056 Signed-off-by: William A. Kennington III <wak@google.com>
* handle/copyable: Implement copyable handleWilliam A. Kennington III2019-03-293-0/+115
| | | | | | | | | | | 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-293-0/+189
| | | | | | | | | | | | | | 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>
* meson: Add version to libraryWilliam A. Kennington III2019-03-281-0/+1
| | | | | | | | Otherwise bitbake will treat it as a private library and not move it to the proper directory and generate the necessary shlib metadata. Change-Id: Ib53a0b28a60e04d33a7634843282daa04181fc8f Signed-off-by: William A. Kennington III <wak@google.com>
* meson: Add alternative build systemWilliam A. Kennington III2019-01-311-0/+19
| | | | | Change-Id: I773281f0df820f4de25a6536fb3858d88b9150fa Signed-off-by: William A. Kennington III <wak@google.com>
* signal: Add idempotent block functionWilliam A. Kennington III2018-11-025-4/+51
| | | | | | | | | | | This makes it trivial to block individual signals from being handled by a thread. Useful when tryng to set up signal handling in event loops. Tested: Builds and passes unit tests. Change-Id: I61739debe2a47ec0ec3e767cf138125c6f59165f Signed-off-by: William A. Kennington III <wak@google.com>
* Initial Project FilesWilliam A. Kennington III2018-11-024-0/+20
This adds the initial autotools scripts and some placeholder c++ files so that the builder is happy. Tested: Built and run through the unit test script. Change-Id: Ie7e7e062726761aad54b77e1c55fcb1ba91afd49 Signed-off-by: William A. Kennington III <wak@google.com>
OpenPOWER on IntegriCloud