Changeset 12524
- Timestamp:
- Oct 11, 2013, 5:10:15 PM (11 years ago)
- Location:
- source/ariba/utility/system
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/system/SystemQueue.cpp
r12060 r12524 53 53 } 54 54 55 56 SystemQueue& SystemQueue::instance() 57 { 58 static SystemQueue _inst; 59 // std::cout << "SystemQueue::instance: " << &_inst << std::endl; 60 return _inst; 61 } 62 63 55 64 void SystemQueue::scheduleEvent( const SystemEvent& event, uint32_t delay ) { 56 65 #ifndef UNDERLAY_OMNET … … 92 101 93 102 void SystemQueue::run() { 94 #ifndef UNDERLAY_OMNET95 103 systemQueueRunning = true; 96 104 directScheduler.run(); 97 105 delayScheduler.run(); 98 #endif99 106 } 100 107 -
source/ariba/utility/system/SystemQueue.h
r12060 r12524 78 78 */ 79 79 80 #ifndef UNDERLAY_OMNET 81 class SystemQueue : private boost::noncopyable { 82 #else 83 class SystemQueue : public cSimpleModule { 84 #endif 85 80 class SystemQueue : private boost::noncopyable 81 { 86 82 use_logging_h(SystemQueue); 87 83 friend class EnterMethod; … … 90 86 * Get the SystemQueue singleton instance. 91 87 */ 92 static SystemQueue& instance() { 93 static SystemQueue _inst; 94 return _inst; 95 } 96 97 #ifdef UNDERLAY_OMNET 98 /** 99 * Prevent deletion of this module 100 * by implementing the virtual method 101 * and doing nothing in it 102 */ 103 virtual void deleteModule(){} 104 #endif 88 static SystemQueue& instance(); 105 89 106 90 /** … … 177 161 */ 178 162 ~SystemQueue(); 179 180 #ifdef UNDERLAY_OMNET181 virtual void handleMessage( cMessage* msg );182 #endif183 184 163 185 164
Note:
See TracChangeset
for help on using the changeset viewer.