summaryrefslogtreecommitdiffstats
path: root/src/libs/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine')
-rw-r--r--src/libs/engine/OSCEngineReceiver.cpp3
-rw-r--r--src/libs/engine/events/SetPortValueEvent.cpp6
2 files changed, 3 insertions, 6 deletions
diff --git a/src/libs/engine/OSCEngineReceiver.cpp b/src/libs/engine/OSCEngineReceiver.cpp
index d9cebba4..a27a44ca 100644
--- a/src/libs/engine/OSCEngineReceiver.cpp
+++ b/src/libs/engine/OSCEngineReceiver.cpp
@@ -24,6 +24,7 @@
#include <raul/SharedPtr.hpp>
#include <raul/AtomLiblo.hpp>
#include "interface/ClientInterface.hpp"
+#include "engine/ThreadManager.hpp"
#include "OSCEngineReceiver.hpp"
#include "QueuedEventSource.hpp"
#include "OSCClientSender.hpp"
@@ -168,6 +169,8 @@ OSCEngineReceiver::deactivate()
void
OSCEngineReceiver::ReceiveThread::_run()
{
+ Thread::get().set_context(THREAD_PRE_PROCESS);
+
/* get a timestamp here and stamp all the events with the same time so
* they all get executed in the same cycle */
diff --git a/src/libs/engine/events/SetPortValueEvent.cpp b/src/libs/engine/events/SetPortValueEvent.cpp
index 267db836..a184bd95 100644
--- a/src/libs/engine/events/SetPortValueEvent.cpp
+++ b/src/libs/engine/events/SetPortValueEvent.cpp
@@ -53,9 +53,6 @@ SetPortValueEvent::SetPortValueEvent(Engine& engine,
, _port(NULL)
, _error(NO_ERROR)
{
- if (!_queued)
- pre_process();
-
memcpy(_data, data, data_size);
}
@@ -80,9 +77,6 @@ SetPortValueEvent::SetPortValueEvent(Engine& engine,
, _port(NULL)
, _error(NO_ERROR)
{
- if (!_queued)
- pre_process();
-
memcpy(_data, data, data_size);
}