@@ -84,18 +84,9 @@ class Mutex : private mbed::NonCopyable<Mutex> {
84
84
/* *
85
85
Wait until a Mutex becomes available.
86
86
87
- @return status code that indicates the execution status of the function:
88
- @a osOK the mutex has been obtained.
89
-
90
- @note You cannot call this function from ISR context.
91
- @note This function treats RTOS errors as fatal system errors, so it can only return osOK.
92
- Use of the return value is deprecated, as the return is expected to become void in the future.
87
+ @note You cannot call this function from ISR context.
93
88
*/
94
- #if MBED_CONF_RTOS_PRESENT
95
- osStatus lock ();
96
- #else
97
- void lock (); // Value return backwards compatibility not required for non-RTOS
98
- #endif
89
+ void lock ();
99
90
100
91
/* * Try to lock the mutex, and return immediately
101
92
@return true if the mutex was acquired, false otherwise.
@@ -132,18 +123,9 @@ class Mutex : private mbed::NonCopyable<Mutex> {
132
123
/* *
133
124
Unlock the mutex that has previously been locked by the same thread
134
125
135
- @return status code that indicates the execution status of the function:
136
- @a osOK the mutex has been released.
137
-
138
- @note You cannot call this function from ISR context.
139
- @note This function treats RTOS errors as fatal system errors, so it can only return osOK.
140
- Use of the return value is deprecated, as the return is expected to become void in the future.
126
+ @note You cannot call this function from ISR context.
141
127
*/
142
- #if MBED_CONF_RTOS_PRESENT
143
- osStatus unlock ();
144
- #else
145
- void unlock (); // Value return backwards compatibility not required for non-RTOS
146
- #endif
128
+ void unlock ();
147
129
148
130
/* * Get the owner the this mutex
149
131
@return the current owner of this mutex.
0 commit comments