(file) Return to DynamicConsumer.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / DynListener

Diff for /pegasus/src/Pegasus/DynListener/DynamicConsumer.cpp between version 1.13 and 1.14

version 1.13, 2006/07/11 18:39:33 version 1.14, 2006/08/09 21:12:56
Line 39 
Line 39 
 #include "DynamicConsumerFacade.h" #include "DynamicConsumerFacade.h"
  
 #include <Pegasus/Common/Config.h> #include <Pegasus/Common/Config.h>
 #include <Pegasus/Common/IPC.h>  #include <Pegasus/Common/Time.h>
 #include <Pegasus/Common/System.h> #include <Pegasus/Common/System.h>
 #include <Pegasus/Common/Tracer.h> #include <Pegasus/Common/Tracer.h>
 #include <Pegasus/Common/XmlWriter.h> #include <Pegasus/Common/XmlWriter.h>
Line 139 
Line 139 
     if (!_initialized)     if (!_initialized)
     {     {
         // yield before a potentially lengthy operation.         // yield before a potentially lengthy operation.
         pegasus_yield();          Threads::yield();
  
         try         try
         {         {
Line 195 
Line 195 
     if (_initialized)     if (_initialized)
     {     {
         // yield before a potentially lengthy operation.         // yield before a potentially lengthy operation.
         pegasus_yield();          Threads::yield();
  
         //terminate consumer         //terminate consumer
         try         try
Line 317 
Line 317 
         memcpy(tv, &_idleTime, sizeof(struct timeval));         memcpy(tv, &_idleTime, sizeof(struct timeval));
     } catch (...)     } catch (...)
     {     {
         gettimeofday(tv, NULL);          Time::gettimeofday(tv);
     }     }
 } }
  
Line 326 
Line 326 
     try     try
     {     {
         AutoMutex lock(_idleTimeMutex);         AutoMutex lock(_idleTimeMutex);
         gettimeofday(&_idleTime, NULL);          Time::gettimeofday(&_idleTime);
  
     } catch (...)     } catch (...)
     {     {
Line 366 
Line 366 
     }     }
  
     struct timeval now;     struct timeval now;
     gettimeofday(&now, NULL);      Time::gettimeofday(&now);
  
     struct timeval timeout = {0,0};     struct timeval timeout = {0,0};
     getIdleTimer(&timeout);     getIdleTimer(&timeout);


Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2