Address review comments.
Perform the following changes:
- change definition of `void Mutex::lock(void)` to `osStatus Mutex::lock(void)`.
- change definition of `void Mutex::unlock()` to `osStatus Mutex::unlock()`.
- use MBED_ERROR1 macro to check the lock/unlock operation status.
- add notes in the description of lock/unlock functions: "This function asserts status of the lock/unlock operation (will not return in case of failure). Use of the return value is deprecated, as the return is expected to become void in the future.".
- modify/add description of the return value.
- remove reference to Mbed 6.
- make `lock(millisec)` deprecated in favour of lock(), trylock() and trylock_for() functions.
ls
1 parent ac2db7c commit fba9c4bc57d99cb90755028660c981877cb5802a
@Przemyslaw Stekiel Przemyslaw Stekiel authored on 27 Aug 2018
Showing 2 changed files
View
rtos/Mutex.cpp
View
rtos/Mutex.h