class axl::sys::psx::NamedSem

#include <axl_sys_psx_Sem.h>

class NamedSem: public axl::sl::Handle
{
public:
    // methods

    bool
    open(
        const sl::StringRef& name,
        int flags = O_CREAT,
        mode_t mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH,
        uint_t value = 0
        );

    bool
    post();

    bool
    signal();

    bool
    tryWait();

    bool
    wait();

    bool
    wait(uint_t timeout);

    bool
    getValue(int* value);

    static
    bool
    unlink(const sl::StringRef& name);
};

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();