Changeset 12765 for source/ariba/utility/system/SystemQueue.cpp
- Timestamp:
- Mar 14, 2014, 8:26:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/system/SystemQueue.cpp
r12764 r12765 76 76 void SystemQueue::scheduleEvent( const SystemEvent& event, uint32_t delay ) 77 77 { 78 assert ( SysQ->running ); // should we really enforce this? 78 // assert ( SysQ->running ); // should we really enforce this? 79 if ( ! SysQ->running ) 80 { 81 logging_debug("/// WARNING: The SystemQueue is NOT RUNNING!"); 82 } 79 83 80 84 // copy … … 140 144 SysQ.reset( new QueueThread() ); 141 145 } 146 147 148 void SystemQueue::leave() 149 { 150 // signal SysQ to quit (and abort queued events) 151 SysQ->cancel(); 152 } 153 154 void SystemQueue::join() 155 { 156 if ( sysq_thread ) 157 { 158 logging_debug("/// ... joining SysQ thread"); 159 sysq_thread->join(); 160 } 161 } 162 163 142 164 143 165 void SystemQueue::dropAll( const SystemEventListener* mlistener) … … 303 325 if ( timedEventsQ.empty() ) 304 326 { 305 logging_debug("/// SysQ is going to sleep.");327 // logging_debug("/// SysQ is going to sleep."); 306 328 307 329 this->system_queue_idle.wait( lock ); … … 310 332 else 311 333 { 312 logging_debug( "/// SysQ is going to sleep for "313 << ( timedEventsQ.top().deadline - get_clock() ).total_milliseconds()314 << "ms. Deadline: "315 << timedEventsQ.top().deadline316 << ", Clock: "317 << get_clock() );334 // logging_debug( "/// SysQ is going to sleep for " 335 // << ( timedEventsQ.top().deadline - get_clock() ).total_milliseconds() 336 // << "ms. Deadline: " 337 // << timedEventsQ.top().deadline 338 // << ", Clock: " 339 // << get_clock() ); 318 340 319 341 this->system_queue_idle.timed_wait( lock, timedEventsQ.top().deadline );
Note:
See TracChangeset
for help on using the changeset viewer.