summaryrefslogtreecommitdiffstats
path: root/raul/Command.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-01-01 19:52:36 +0000
committerDavid Robillard <d@drobilla.net>2008-01-01 19:52:36 +0000
commitcb21a7b08354134307637eb822a3c1ad9cb7ed23 (patch)
treefed8b9484141e723317a00886b0bd8bc841c9397 /raul/Command.hpp
parent143d9b1599a82a35165fd8e17f249998f95f15d0 (diff)
downloadraul-cb21a7b08354134307637eb822a3c1ad9cb7ed23.tar.gz
raul-cb21a7b08354134307637eb822a3c1ad9cb7ed23.tar.bz2
raul-cb21a7b08354134307637eb822a3c1ad9cb7ed23.zip
RAUL code cleanup.
git-svn-id: http://svn.drobilla.net/lad/raul@999 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/Command.hpp')
-rw-r--r--raul/Command.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/raul/Command.hpp b/raul/Command.hpp
index 296af10..572d3d9 100644
--- a/raul/Command.hpp
+++ b/raul/Command.hpp
@@ -28,13 +28,14 @@ namespace Raul {
*
* This is useful for calling simple parameterless commands from another thread
* (OSC, GUI, etc) and waiting on the result. Works well for coarsely timed
- * events. Realtime safe on the commend executing side.
+ * events (e.g. 'play' clicked in a GUI).
+ *
+ * Realtime safe on the commend executing side.
*
* \ingroup raul
*/
class Command : boost::noncopyable {
public:
-
inline Command() : _sem(0) {}
/** Caller context */
@@ -42,7 +43,7 @@ public:
/** Execution context */
inline bool pending() { return _sem.has_waiter(); }
- inline void finish() { _sem.post(); }
+ inline void finish() { _sem.post(); }
private:
Semaphore _sem;