class axl::sys::win::Semaphore

#include <axl_sys_win_Semaphore.h>

class Semaphore: public axl::sys::win::WaitableHandle
{
public:
    // methods

    bool
    create(
        SECURITY_ATTRIBUTES* secAttr,
        uint_t initialCount,
        uint_t maxCount,
        const sl::StringRef_w& name = NULL
        );

    bool
    open(
        uint_t access,
        bool doInheritHandle,
        const sl::StringRef_w& name
        );

    bool
    signal(uint_t count = 1);
};

Inherited Members

public:
    // typedefs

    typedef T H;

    // methods

    operator T() const;

    T
    operator->() const;

    const Handle&
    operator=(T h);

    bool
    isOpen() const;

    void
    close();

    void
    attach(T h);

    T
    detach();

    T*
    p();

    static
    T
    getInvalidHandle();

    WaitResult
    wait(
        uint_t timeout = -1,
        bool isAlertable = false
        );

    static
    WaitResult
    multiWait(
        HANDLE* waitArray,
        dword_t count,
        bool doWaitAll = false,
        uint_t timeout = -1,
        bool isAlertable = false
        );