@@ -84,18 +84,11 @@ 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
87
@note You cannot call this function from ISR context.
91
88
@note This function treats RTOS errors as fatal system errors, so it can only return osOK.
92
89
Use of the return value is deprecated, as the return is expected to become void in the future.
93
90
*/
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
91
+ void lock ();
99
92
100
93
/* *
101
94
Wait until a Mutex becomes available.
@@ -150,18 +143,11 @@ class Mutex : private mbed::NonCopyable<Mutex> {
150
143
/* *
151
144
Unlock the mutex that has previously been locked by the same thread
152
145
153
- @return status code that indicates the execution status of the function:
154
- @a osOK the mutex has been released.
155
-
156
146
@note You cannot call this function from ISR context.
157
147
@note This function treats RTOS errors as fatal system errors, so it can only return osOK.
158
148
Use of the return value is deprecated, as the return is expected to become void in the future.
159
149
*/
160
- #if MBED_CONF_RTOS_PRESENT
161
- osStatus unlock ();
162
- #else
163
- void unlock (); // Value return backwards compatibility not required for non-RTOS
164
- #endif
150
+ void unlock ();
165
151
166
152
/* * Get the owner the this mutex
167
153
@return the current owner of this mutex.
0 commit comments