summaryrefslogtreecommitdiffstats
path: root/src/engine/MessageContext.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-03-06 10:23:19 +0000
committerDavid Robillard <d@drobilla.net>2010-03-06 10:23:19 +0000
commit059f20c9666234f2be01498ee04f1e7ee795ba8f (patch)
treeef0d53073d53012aeaa7d084fccf477b166c0684 /src/engine/MessageContext.cpp
parent085a451dfec54126be1b9346899c81d82e6eb58e (diff)
downloadingen-059f20c9666234f2be01498ee04f1e7ee795ba8f.tar.gz
ingen-059f20c9666234f2be01498ee04f1e7ee795ba8f.tar.bz2
ingen-059f20c9666234f2be01498ee04f1e7ee795ba8f.zip
Save Ingen patches as working standard LV2 plugin bundles.
This allows you to create an Ingen patch in Ingen running as a Jack client, save it, then load that patch as an LV2 plugin in any LV2 compliant host. Eliminate (hopefully) all static data in the engine (for multiple instantiations in a single process). More API/ABI stable interface for Ingen::Shared::World. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2533 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/MessageContext.cpp')
-rw-r--r--src/engine/MessageContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/MessageContext.cpp b/src/engine/MessageContext.cpp
index ec0fedbf..2e37f69a 100644
--- a/src/engine/MessageContext.cpp
+++ b/src/engine/MessageContext.cpp
@@ -37,17 +37,17 @@ namespace Ingen {
void
MessageContext::run(PortImpl* port, FrameTime time)
{
- if (ThreadManager::current_thread_id() == THREAD_PRE_PROCESS) {
+ if (ThreadManager::thread_is(THREAD_PRE_PROCESS)) {
assert(port);
Glib::Mutex::Lock lock(_mutex);
_non_rt_request = Request(time, port);
_sem.post();
_cond.wait(_mutex);
- } else if (ThreadManager::current_thread_id() == THREAD_PROCESS) {
+ } else if (ThreadManager::thread_is(THREAD_PROCESS)) {
Request r(time, port);
_requests.write(sizeof(Request), &r);
// signal() will be called at the end of this process cycle
- } else if (ThreadManager::current_thread_id() == THREAD_MESSAGE) {
+ } else if (ThreadManager::thread_is(THREAD_MESSAGE)) {
warn << "Message context recursion at " << port->path() << endl;
} else {
error << "Run requested from unknown thread" << endl;