We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3c9c12 commit cde5196Copy full SHA for cde5196
rtos/Mutex.h
@@ -28,10 +28,25 @@
28
#include "mbed_rtos_storage.h"
29
30
#include "platform/NonCopyable.h"
31
+#include "platform/ScopedLock.h"
32
33
namespace rtos {
34
/** \addtogroup rtos */
35
/** @{*/
36
+
37
+class Mutex;
38
+/** Typedef for the mutex lock
39
+ *
40
+ * Usage:
41
+ * @code
42
+ * void foo(Mutex &m) {
43
+ * ScopedMutexLock lock(m);
44
+ * // Code in this block will be protected by Mutex lock
45
+ * }
46
+ * @endcode
47
+ */
48
+typedef mbed::ScopedLock<Mutex> ScopedMutexLock;
49
50
/**
51
* \defgroup rtos_Mutex Mutex class
52
* @{
0 commit comments