class
#include <eckit/os/SharedInt.h>
SharedInt
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)
#include <eckit/os/Semaphore.h>
void eckit:: SharedInt:: unlock(void)
#include <eckit/os/Semaphore.h>
bool eckit:: SharedInt:: tryLock(void)
#include <eckit/os/Semaphore.h>
bool eckit:: SharedInt:: test(unsigned short n = 0)
#include <eckit/os/Semaphore.h>
int eckit:: SharedInt:: get(int n = 0) const
#include <eckit/os/Semaphore.h>
void eckit:: SharedInt:: set(int,
int n = 0)
#include <eckit/os/Semaphore.h>
void eckit:: SharedInt:: raise(unsigned short n = 0)
#include <eckit/os/Semaphore.h>
void eckit:: SharedInt:: raise(unsigned short n,
short v)
#include <eckit/os/Semaphore.h>
void eckit:: SharedInt:: lower(unsigned short n = 0)
#include <eckit/os/Semaphore.h>
void eckit:: SharedInt:: lower(unsigned short n,
short v)
#include <eckit/os/Semaphore.h>
pid_t eckit:: SharedInt:: getpid() const
#include <eckit/os/Semaphore.h>