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

Diff for /pegasus/src/Pegasus/Common/StatisticalData.cpp between version 1.6 and 1.7

version 1.6, 2004/06/29 16:12:34 version 1.7, 2004/08/12 10:47:43
Line 25 
Line 25 
 // //
 // Author: Arthur Pichlkostner // Author: Arthur Pichlkostner
 //             (checked in: Markus Mueller sedgewick_de@yahoo.de) //             (checked in: Markus Mueller sedgewick_de@yahoo.de)
   // Modified By: Amit K Arora, IBM (amita@in.ibm.com) for Bug#1090
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 86 
Line 87 
 } }
  
 void StatisticalData::addToValue(Sint64 value, Uint16 type, Uint32 t){ void StatisticalData::addToValue(Sint64 value, Uint16 type, Uint32 t){
    _mutex.lock( pegasus_thread_self() );     AutoMutex autoMut(_mutex);
    switch(t){    switch(t){
           case SERVER:          numCalls[type] += 1;           case SERVER:          numCalls[type] += 1;
                         cimomTime[type] += value;                         cimomTime[type] += value;
Line 98 
Line 99 
       case BYTES_READ:  requestSize[type] += value;       case BYTES_READ:  requestSize[type] += value;
                         break;                         break;
    }    }
    _mutex.unlock();  
 } }
  
  void StatisticalData::setCopyGSD(Boolean flag)  void StatisticalData::setCopyGSD(Boolean flag)


Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2