mutex++
Dependents: header_main_publish
Fork of mbed-rtos by
Diff: rtos/Mutex.h
- Revision:
- 31:015df9e602b6
- Parent:
- 8:88a1a9c26ae3
--- 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: