version 1.4, 2004/06/09 20:05:48
|
version 1.6, 2004/06/29 16:12:34
|
|
|
| |
StatisticalData::StatisticalData(){ | StatisticalData::StatisticalData(){ |
| |
|
|
|
copyGSD = 0; |
|
|
for (unsigned int i=0; i<StatisticalData::length; i++){ | for (unsigned int i=0; i<StatisticalData::length; i++){ |
numCalls[i] = 0; | numCalls[i] = 0; |
cimomTime[i] = 0; | cimomTime[i] = 0; |
|
|
} | } |
} | } |
| |
void StatisticalData::addToValue(Uint64 value, Uint16 type, Uint32 t){ |
void StatisticalData::addToValue(Sint64 value, Uint16 type, Uint32 t){ |
_mutex.lock( pegasus_thread_self() ); | _mutex.lock( pegasus_thread_self() ); |
switch(t){ | switch(t){ |
case SERVER: numCalls[type] += 1; | case SERVER: numCalls[type] += 1; |
|
|
_mutex.unlock(); | _mutex.unlock(); |
} | } |
| |
|
void StatisticalData::setCopyGSD(Boolean flag) |
|
{ |
|
|
|
copyGSD = flag; |
|
} |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |