Merge pull request #2189 from geky/rtos-sema-default

[rtos] Add default constructor for Semaphore
pull/2200/head
Sam Grove 2016-07-19 17:11:22 -05:00 committed by GitHub
commit 518afae619
1 changed files with 2 additions and 2 deletions

View File

@ -31,9 +31,9 @@ namespace rtos {
class Semaphore {
public:
/** Create and Initialize a Semaphore object used for managing resources.
@param number of available resources; maximum index value is (count-1).
@param number of available resources; maximum index value is (count-1). (default: 0).
*/
Semaphore(int32_t count);
Semaphore(int32_t count=0);
/** Wait until a Semaphore resource becomes available.
@param millisec timeout value or 0 in case of no time-out. (default: osWaitForever).