diff options
author | David Robillard <d@drobilla.net> | 2008-01-01 19:52:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-01-01 19:52:36 +0000 |
commit | cb21a7b08354134307637eb822a3c1ad9cb7ed23 (patch) | |
tree | fed8b9484141e723317a00886b0bd8bc841c9397 /raul/Command.hpp | |
parent | 143d9b1599a82a35165fd8e17f249998f95f15d0 (diff) | |
download | raul-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.hpp | 7 |
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; |