mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2189 from geky/rtos-sema-default
[rtos] Add default constructor for Semaphorepull/2200/head
commit
518afae619
|
@ -31,9 +31,9 @@ namespace rtos {
|
||||||
class Semaphore {
|
class Semaphore {
|
||||||
public:
|
public:
|
||||||
/** Create and Initialize a Semaphore object used for managing resources.
|
/** 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.
|
/** Wait until a Semaphore resource 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. (default: osWaitForever).
|
||||||
|
|
Loading…
Reference in New Issue