/[svn]/linuxsampler/trunk/src/engines/InstrumentManagerThread.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/InstrumentManagerThread.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 989 by schoenebeck, Tue Dec 19 19:34:08 2006 UTC revision 2185 by persson, Sun Jun 19 09:09:38 2011 UTC
# Line 26  Line 26 
26  #include "../common/Condition.h"  #include "../common/Condition.h"
27  #include "../common/Mutex.h"  #include "../common/Mutex.h"
28  #include "../Sampler.h"  #include "../Sampler.h"
29    #include "../EventListeners.h"
30  #include "InstrumentManager.h"  #include "InstrumentManager.h"
31    
32  #include <list>  #include <list>
# Line 40  namespace LinuxSampler { Line 41  namespace LinuxSampler {
41       * to the API.       * to the API.
42       */       */
43      class InstrumentManagerThread : public Thread {      class InstrumentManagerThread : public Thread {
44            friend class EventHandler;
45            
46          public:          public:
47              InstrumentManagerThread();              InstrumentManagerThread();
48              void StartNewLoad(String Filename, uint uiInstrumentIndex, EngineChannel* pEngineChannel);              void StartNewLoad(String Filename, uint uiInstrumentIndex, EngineChannel* pEngineChannel);
49              void StartSettingMode(InstrumentManager* pManager, const InstrumentManager::instrument_id_t& ID, InstrumentManager::mode_t Mode);              void StartSettingMode(InstrumentManager* pManager, const InstrumentManager::instrument_id_t& ID, InstrumentManager::mode_t Mode);
50              virtual ~InstrumentManagerThread();              virtual ~InstrumentManagerThread();
51                int StopThread();
52          protected:          protected:
53              struct command_t {              struct command_t {
54                  enum cmd_type_t {                  enum cmd_type_t {
# Line 63  namespace LinuxSampler { Line 67  namespace LinuxSampler {
67              Condition            conditionJobsLeft; ///< synchronizer to block this thread until a new job arrives              Condition            conditionJobsLeft; ///< synchronizer to block this thread until a new job arrives
68    
69              int Main(); ///< Implementation of virtual method from class Thread.              int Main(); ///< Implementation of virtual method from class Thread.
70            private:
71                class EventHandler : public ChannelCountAdapter {
72                    public:
73                        InstrumentManagerThread* pThread;
74                        virtual void ChannelToBeRemoved(SamplerChannel* pChannel);
75                };
76                
77                EventHandler eventHandler;
78      };      };
79    
80  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.989  
changed lines
  Added in v.2185

  ViewVC Help
Powered by ViewVC