@@ -40,8 +40,8 @@ namespace rtos {
40
40
/* * The Mutex class is used to synchronize the execution of threads.
41
41
This is for example used to protect access to a shared resource.
42
42
43
- @note Member functions of this class cannot be used in ISR context. If you require Mutex functionality within
44
- ISR handler consider using @a Semaphore.
43
+ @note You cannot use member functions of this class in ISR context. If you require Mutex functionality within
44
+ ISR handler, consider using @a Semaphore.
45
45
46
46
@note
47
47
Memory considerations: The mutex control structures will be created on current thread's stack, both for the mbed OS
@@ -51,15 +51,15 @@ class Mutex : private mbed::NonCopyable<Mutex> {
51
51
public:
52
52
/* * Create and Initialize a Mutex object
53
53
*
54
- * @note This function cannot be called from ISR context.
54
+ * @note You cannot call this function from ISR context.
55
55
*/
56
56
Mutex ();
57
57
58
58
/* * Create and Initialize a Mutex object
59
59
60
60
@param name name to be used for this mutex. It has to stay allocated for the lifetime of the thread.
61
61
62
- @note This function cannot be called from ISR context.
62
+ @note You cannot call this function from ISR context.
63
63
*/
64
64
Mutex (const char *name);
65
65
@@ -72,7 +72,7 @@ class Mutex : private mbed::NonCopyable<Mutex> {
72
72
@a osErrorResource the mutex could not be obtained when no timeout was specified.
73
73
@a osErrorISR this function cannot be called from the interrupt service routine.
74
74
75
- @note This function cannot be called from ISR context.
75
+ @note You cannot call this function from ISR context.
76
76
*/
77
77
osStatus lock (uint32_t millisec=osWaitForever);
78
78
@@ -97,13 +97,13 @@ class Mutex : private mbed::NonCopyable<Mutex> {
97
97
/* * Get the owner the this mutex
98
98
@return the current owner of this mutex.
99
99
100
- @note This function cannot be called from ISR context.
100
+ @note You cannot call this function from ISR context.
101
101
*/
102
102
osThreadId get_owner ();
103
103
104
104
/* * Mutex destructor
105
105
*
106
- * @note This function cannot be called from ISR context.
106
+ * @note You cannot call this function from ISR context.
107
107
*/
108
108
~Mutex ();
109
109
0 commit comments