SingletonPtr: API extensions, make constexpr
* Adjust definition to make the default constructor `constexpr`.
  This permits use in classes that want lazy initialization and their
  own `constexpr` constructor, such as `mstd::mutex`.

* Add `get_no_init()` method to allow an explicit optimisation for
  paths that know they won be the first call (such as
  `mstd::mutex::unlock`).

* Add `destroy()` method to permit destruction of the contained object.
  (`SingletonPtr`'s destructor does not call its destructor - a cheat
  to omit destructors of static objects). Needed if using in a class
  that needs proper destruction.
ls
1 parent 0aab1a9 commit 0bb4c050b731b6fae4d972427e1dc3d118f7600c
@Kevin Bracey Kevin Bracey authored on 11 Jul 2019
Showing 4 changed files
View
drivers/SPI.h
View
features/nanostack/nanostack-hal-mbed-cmsis-rtos/arm_hal_fhss_timer.cpp
View
platform/SingletonPtr.h
View
tools/test/travis-ci/doxy-spellchecker/ignore.en.pws