10namespace Arp {
namespace System {
namespace Ve
12class ISemaphoreService;
15namespace Arp {
namespace System {
namespace Commons {
namespace Threading
32 bool Wait(
size_t timeout = 0);
46 Arp::System::Ve::ISemaphoreService* pSemaphoreService;
This class represents the Arp String. The implementation is based on std::string.
Definition: String.hpp:39
Implementation of named or unnamed semaphore used to synchronize processes and threads.
Definition: Semaphore.hpp:23
bool TryWait(void)
Like Wait but returns immediately if the semaphore could not be decremented.
Definition: Semaphore.cpp:106
Semaphore(size_t initialValue)
Constructs an unnamed Semaphore, i.e. local, instance.
Definition: Semaphore.cpp:22
virtual ~Semaphore(void)
Destructs this instance and frees all resources.
Definition: Semaphore.cpp:80
void Post(void)
Increments the internal counter.
Definition: Semaphore.cpp:87
String GetName(void)
Returns the name of a named semaphore.
Definition: Semaphore.cpp:121
bool Wait(size_t timeout=0)
Tries to decrements the internal counter.
Definition: Semaphore.cpp:98
size_t GetValue(void)
Returns the current value of the internal counter.
Definition: Semaphore.cpp:114
Root namespace for the PLCnext API