`osStatus lock(uint32_t millisec=osWaitForever)` - remove default value

Since `void lock(void)` member function has been added we need to remove default value from deprecated `lock(uint32_t millisec=osWaitForever)` member function since otherwise calling `lock()` would be ambiguous.
pull/7423/head
Przemyslaw Stekiel 2018-07-06 11:31:02 +02:00
parent 3decd510dc
commit b626e185ec
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ public:
@deprecated Do not use this function. This function has been replaced with trylock_for and lock(void) functions.
Wait until a Mutex becomes available.
@param millisec timeout value or 0 in case of no time-out. (default: osWaitForever)
@param millisec timeout value or 0 in case of no time-out.
@return status code that indicates the execution status of the function:
@a osOK the mutex has been obtained.
@a osErrorTimeout the mutex could not be obtained in the given time.
@ -101,7 +101,7 @@ public:
@note You cannot call this function from ISR context.
*/
MBED_DEPRECATED_SINCE("mbed-os-5.10.0", "Replaced with trylock_for and lock(void) functions")
osStatus lock(uint32_t millisec=osWaitForever);
osStatus lock(uint32_t millisec);
/** Try to lock the mutex, and return immediately
@return true if the mutex was acquired, false otherwise.