Add name to HAL Notifier

This commit is contained in:
Peter Johnson
2019-11-09 11:41:58 -08:00
parent 2da64d15f6
commit 3e049e02f0
10 changed files with 74 additions and 2 deletions

View File

@@ -16,6 +16,7 @@
#include <hal/Types.h>
#include <units/units.h>
#include <wpi/Twine.h>
#include <wpi/deprecated.h>
#include <wpi/mutex.h>
@@ -46,6 +47,13 @@ class Notifier : public ErrorBase {
Notifier(Notifier&& rhs);
Notifier& operator=(Notifier&& rhs);
/**
* Sets the name of the notifier. Used for debugging purposes only.
*
* @param name Name
*/
void SetName(const wpi::Twine& name);
/**
* Change the handler function.
*