10namespace Arp {
namespace System {
namespace Ve
12class ISemaphoreService;
15namespace Arp {
namespace System {
namespace Commons {
namespace Threading
61 bool Wait(
size_t timeout = 0);
86 Arp::System::Ve::ISemaphoreService* pSemaphoreService;
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.
Semaphore(size_t initialValue)
Constructs an unnamed Semaphore, i.e. local, instance.
void Post(void)
Increments the internal counter.
String GetName(void)
Returns the name of a named semaphore.
bool Wait(size_t timeout=0)
Tries to decrements the internal counter.
Semaphore(const String &name, size_t initialValue)
Constructs a named Semaphore instance.
Semaphore(const String &name)
Opens a named Semaphore instance.
virtual ~Semaphore(void)
Destructs this instance and frees all resources.
size_t GetValue(void)
Returns the current value of the internal counter.
@ System
System components used by the System, Device, Plc or Io domains.
Root namespace for the PLCnext API