Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial
Dependents: rtos_basic rtos_basic
Fork of mbed-rtos by
Diff: rtos/Mutex.h
- Revision:
- 31:015df9e602b6
- Parent:
- 8:88a1a9c26ae3
- Child:
- 92:bc9729798a19
diff -r 3761f69dbbb2 -r 015df9e602b6 rtos/Mutex.h
--- a/rtos/Mutex.h Tue May 27 08:30:16 2014 +0100
+++ b/rtos/Mutex.h Tue Jun 03 11:30:14 2014 +0100
@@ -34,23 +34,23 @@
public:
/** Create and Initialize a Mutex object */
Mutex();
-
+
/** Wait until a Mutex becomes available.
@param millisec timeout value or 0 in case of no time-out. (default: osWaitForever)
@return status code that indicates the execution status of the function.
- */
+ */
osStatus lock(uint32_t millisec=osWaitForever);
-
+
/** Try to lock the mutex, and return immediately
@return true if the mutex was acquired, false otherwise.
*/
bool trylock();
-
+
/** Unlock the mutex that has previously been locked by the same thread
- @return status code that indicates the execution status of the function.
+ @return status code that indicates the execution status of the function.
*/
osStatus unlock();
-
+
~Mutex();
private:
