Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: platform/PlatformMutex.h
- Revision:
- 169:9672193075cf
- Parent:
- 168:e84263d55307
--- a/platform/PlatformMutex.h Wed Jun 21 17:46:44 2017 +0100
+++ b/platform/PlatformMutex.h Thu Jul 06 15:42:05 2017 +0100
@@ -18,6 +18,8 @@
#ifndef PLATFORM_MUTEX_H
#define PLATFORM_MUTEX_H
+#include "platform/NonCopyable.h"
+
#ifdef MBED_CONF_RTOS_PRESENT
#include "rtos/Mutex.h"
typedef rtos::Mutex PlatformMutex;
@@ -25,7 +27,7 @@
/** A stub mutex for when an RTOS is not present
* @ingroup platform
*/
-class PlatformMutex {
+class PlatformMutex : private mbed::NonCopyable<PlatformMutex> {
public:
PlatformMutex() {
// Stub
