Changeset 3:1b14c467b7f5 in rrlib_speech_synthesis


Ignore:
Timestamp:
10.09.2013 11:32:51 (7 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Replaced tMessageProcessor singleton lifetime policy by longevity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • base/tVoice.h

    r0 r3  
    102102    void AddMessage(tVoice *voice, const std::string &text); 
    103103    static void ProcessMessages(tMessageProcessorImplementation *processor); 
    104 }; 
     104  }; 
    105105 
    106   typedef design_patterns::tSingletonHolder<tMessageProcessorImplementation> tMessageProcessor; 
     106  typedef design_patterns::tSingletonHolder<tMessageProcessorImplementation, design_patterns::singleton::Longevity> tMessageProcessor; 
     107  friend unsigned int GetLongevity(tMessageProcessorImplementation *); 
    107108 
    108109//---------------------------------------------------------------------- 
     
    125126 
    126127//---------------------------------------------------------------------- 
     128// Function declarations 
     129//---------------------------------------------------------------------- 
     130inline unsigned int GetLongevity(tVoice::tMessageProcessorImplementation *) 
     131{ 
     132  return 0xFFFFFFFF; 
     133} 
     134 
     135//---------------------------------------------------------------------- 
    127136// End of namespace declaration 
    128137//---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.