Forked.
Fork of mbed-dev by
Diff: drivers/BusIn.h
- Revision:
- 168:9672193075cf
- Parent:
- 167:e84263d55307
--- a/drivers/BusIn.h Wed Jun 21 17:46:44 2017 +0100 +++ b/drivers/BusIn.h Thu Jul 06 15:42:05 2017 +0100 @@ -19,6 +19,7 @@ #include "platform/platform.h" #include "drivers/DigitalIn.h" #include "platform/PlatformMutex.h" +#include "platform/NonCopyable.h" namespace mbed { /** \addtogroup drivers */ @@ -28,7 +29,7 @@ * @note Synchronization level: Thread safe * @ingroup drivers */ -class BusIn { +class BusIn : private NonCopyable<BusIn> { public: /* Group: Configuration Methods */ @@ -115,12 +116,9 @@ PlatformMutex _mutex; - /* disallow copy constructor and assignment operators */ private: virtual void lock(); virtual void unlock(); - BusIn(const BusIn&); - BusIn & operator = (const BusIn&); }; } // namespace mbed