summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/PostProcessor.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-08-01 04:42:09 +0000
committerDavid Robillard <d@drobilla.net>2007-08-01 04:42:09 +0000
commit1a77934531b0ddfc4392ccffbdde0058c2dbab68 (patch)
tree51e628c9b3dc4299d1f5dbb3bd5aad4938b0ae5a /src/libs/engine/PostProcessor.hpp
parent9cd4eddfb41c4573d4acd4f625572c4cdff50497 (diff)
downloadingen-1a77934531b0ddfc4392ccffbdde0058c2dbab68.tar.gz
ingen-1a77934531b0ddfc4392ccffbdde0058c2dbab68.tar.bz2
ingen-1a77934531b0ddfc4392ccffbdde0058c2dbab68.zip
Remove PostProcessor thread, post-process in main thread instead (solves scripting threading issues, and saves memory anyway).
Revert saw_lp.ingen.ttl (version written by broken raptor committed by mistake). Working engine->script responses, nicer Python example. git-svn-id: http://svn.drobilla.net/lad/ingen@665 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/PostProcessor.hpp')
-rw-r--r--src/libs/engine/PostProcessor.hpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/libs/engine/PostProcessor.hpp b/src/libs/engine/PostProcessor.hpp
index b77bda6e..114a8bef 100644
--- a/src/libs/engine/PostProcessor.hpp
+++ b/src/libs/engine/PostProcessor.hpp
@@ -21,9 +21,9 @@
#include <pthread.h>
#include "types.hpp"
#include <raul/SRSWQueue.hpp>
-#include <raul/Slave.hpp>
+//#include <raul/Slave.hpp>
-namespace Raul { class Maid; }
+//namespace Raul { class Maid; }
namespace Ingen {
@@ -36,20 +36,26 @@ class Event;
* is realtime-safe), which signals the processing thread through a semaphore
* to handle the event and pass it on to the Maid.
*
+ * Update: This is all run from main_iteration now to solve scripting
+ * thread issues. Not sure if this is permanent/ideal or not...
+ *
* \ingroup engine
*/
-class PostProcessor : public Raul::Slave
+class PostProcessor //: public Raul::Slave
{
public:
- PostProcessor(Raul::Maid& maid, size_t queue_size);
+ PostProcessor(/*Raul::Maid& maid, */size_t queue_size);
/** Push an event on to the process queue, realtime-safe, not thread-safe. */
inline void push(Event* const ev) { _events.push(ev); }
+ /** Post-process and delete all pending events */
+ void process();
+
private:
- Raul::Maid& _maid;
+ //Raul::Maid& _maid;
Raul::SRSWQueue<Event*> _events;
- virtual void _whipped();
+ //virtual void _whipped();
};