eckit::SharedInt class

Base classes

class Semaphore

Constructors, destructors, conversion operators

SharedInt(const PathName&, int n = 1)
~SharedInt()

Public functions

void use(int n = 0)
void use(int n, short v)
void release(int n = 0)
void release(int n, short v)
auto free(int n = 0) const -> int
auto limit(int n = 0) const -> int
void newLimit(short val, unsigned short n = 0)
void lock(void)
void unlock(void)
auto tryLock(void) -> bool
auto test(unsigned short n = 0) -> bool
auto get(int n = 0) const -> int
void set(int, int n = 0)
void raise(unsigned short n = 0)
void raise(unsigned short n, short v)
void lower(unsigned short n = 0)
void lower(unsigned short n, short v)
auto getpid() const -> pid_t

Function documentation

void eckit::SharedInt::lock(void)

void eckit::SharedInt::unlock(void)

bool eckit::SharedInt::tryLock(void)

bool eckit::SharedInt::test(unsigned short n = 0)

int eckit::SharedInt::get(int n = 0) const

void eckit::SharedInt::set(int, int n = 0)

void eckit::SharedInt::raise(unsigned short n = 0)

void eckit::SharedInt::raise(unsigned short n, short v)

void eckit::SharedInt::lower(unsigned short n = 0)

void eckit::SharedInt::lower(unsigned short n, short v)

pid_t eckit::SharedInt::getpid() const