@@ -84,18 +84,9 @@ class Mutex : private mbed::NonCopyable<Mutex> {
8484 /* *
8585 Wait until a Mutex becomes available.
8686
87- @return status code that indicates the execution status of the function:
88- @a osOK the mutex has been obtained.
89-
9087 @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.
9388 */
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 ();
9990
10091 /* * Try to lock the mutex, and return immediately
10192 @return true if the mutex was acquired, false otherwise.
@@ -132,18 +123,9 @@ class Mutex : private mbed::NonCopyable<Mutex> {
132123 /* *
133124 Unlock the mutex that has previously been locked by the same thread
134125
135- @return status code that indicates the execution status of the function:
136- @a osOK the mutex has been released.
137-
138126 @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.
141127 */
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 ();
147129
148130 /* * Get the owner the this mutex
149131 @return the current owner of this mutex.
0 commit comments