/[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 1760 by schoenebeck, Tue Dec 19 19:34:08 2006 UTC revision 1761 by iliev, Fri Aug 29 15:42:06 2008 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);
# Line 63  namespace LinuxSampler { Line 66  namespace LinuxSampler {
66              Condition            conditionJobsLeft; ///< synchronizer to block this thread until a new job arrives              Condition            conditionJobsLeft; ///< synchronizer to block this thread until a new job arrives
67    
68              int Main(); ///< Implementation of virtual method from class Thread.              int Main(); ///< Implementation of virtual method from class Thread.
69            private:
70                class EventHandler : public ChannelCountAdapter {
71                    public:
72                        InstrumentManagerThread* pThread;
73                        virtual void ChannelToBeRemoved(SamplerChannel* pChannel);
74                };
75                
76                EventHandler eventHandler;
77      };      };
78    
79  } // namespace LinuxSampler  } // namespace LinuxSampler

Legend:
Removed from v.1760  
changed lines
  Added in v.1761

  ViewVC Help
Powered by ViewVC