20#ifndef __SYNTHCLONE_SEMAPHORE_H__
21#define __SYNTHCLONE_SEMAPHORE_H__
23#if defined(SYNTHCLONE_PLATFORM_MACX) || defined(SYNTHCLONE_PLATFORM_UNIX)
25#elif defined(SYNTHCLONE_PLATFORM_WIN32)
29#error "A semaphore implementation has not been defined for your platform"
32#include <QtCore/QObject>
33#include <QtCore/QString>
91#if defined(SYNTHCLONE_PLATFORM_MACX)
94#elif defined(SYNTHCLONE_PLATFORM_UNIX)
96#elif defined(SYNTHCLONE_PLATFORM_WIN32)
A portable semaphore object, optimally including a realtime-safe 'post' operation.
Definition: semaphore.h:42
~Semaphore()
Destroys a Semaphore object.
void post()
Increments the semaphore.
void wait()
Decrements the semaphore if the semaphore's value is greater than zero; otherwise,...
Semaphore(QObject *parent=0)
Constructs a new Semaphore object.
Definition: component.h:26