summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/QueuedEvent.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-07-14 22:24:00 +0000
committerDavid Robillard <d@drobilla.net>2006-07-14 22:24:00 +0000
commit5dc6649496e938b32a5fe9f341de6cce962d3731 (patch)
treec4b1832581c32b867b653afd0a7bd4bb05883b36 /src/libs/engine/QueuedEvent.h
parent7e013dc6986fa9d6dc8616d494d9de5d192c4c69 (diff)
downloadingen-5dc6649496e938b32a5fe9f341de6cce962d3731.tar.gz
ingen-5dc6649496e938b32a5fe9f341de6cce962d3731.tar.bz2
ingen-5dc6649496e938b32a5fe9f341de6cce962d3731.zip
Enforced OSC path restrictions on Path for spec conformance (since GraphObject
paths will soon be part of OSC paths) git-svn-id: http://svn.drobilla.net/lad/ingen@88 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/QueuedEvent.h')
-rw-r--r--src/libs/engine/QueuedEvent.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/src/libs/engine/QueuedEvent.h b/src/libs/engine/QueuedEvent.h
index d5cd9701..a46e0376 100644
--- a/src/libs/engine/QueuedEvent.h
+++ b/src/libs/engine/QueuedEvent.h
@@ -45,39 +45,44 @@ public:
/** Process this event into a realtime-suitable event.
*/
virtual void pre_process() {
- assert(m_pre_processed == false);
- m_pre_processed = true;
+ assert(_pre_processed == false);
+ _pre_processed = true;
}
virtual void execute(samplecount offset) {
- assert(m_pre_processed);
+ assert(_pre_processed);
Event::execute(offset);
}
virtual void post_process() {}
/** If this event blocks the prepare phase of other slow events */
- bool is_blocking() { return m_blocking; }
+ bool is_blocking() { return _blocking; }
- bool is_prepared() { return m_pre_processed; }
+ bool is_prepared() { return _pre_processed; }
protected:
// Prevent copies
QueuedEvent(const QueuedEvent& copy);
QueuedEvent& operator=(const QueuedEvent&);
- QueuedEvent(CountedPtr<Responder> responder, bool blocking = false, QueuedEventSource* source=NULL)
- : Event(responder), m_pre_processed(false), m_blocking(blocking), m_source(source)
+ QueuedEvent(CountedPtr<Responder> responder,
+ samplecount timestamp,
+ bool blocking = false,
+ QueuedEventSource* source = NULL)
+ : Event(responder, timestamp)
+ , _pre_processed(false), _blocking(blocking), _source(source)
{}
// NULL event base (for internal events only!)
QueuedEvent()
- : Event(), m_pre_processed(false), m_blocking(false), m_source(NULL)
+ : Event(NULL, 0)
+ , _pre_processed(false), _blocking(false), _source(NULL)
{}
- bool m_pre_processed;
- bool m_blocking;
- QueuedEventSource* m_source;
+ bool _pre_processed;
+ bool _blocking;
+ QueuedEventSource* _source;
};