version 1.15, 2006/08/23 19:47:51
|
version 1.16, 2006/09/06 19:48:18
|
|
|
PEG_METHOD_ENTER(TRC_PROVIDERMANAGER, | PEG_METHOD_ENTER(TRC_PROVIDERMANAGER, |
"ProviderManager::unloadIdleProviders"); | "ProviderManager::unloadIdleProviders"); |
| |
static struct timeval first = {0,0}, now, last = {0,0}; |
|
|
|
if(first.tv_sec == 0) |
|
{ |
|
Time::gettimeofday(&first); |
|
} |
|
Time::gettimeofday(&now); |
|
|
|
if (((now.tv_sec - first.tv_sec) > IDLE_LIMIT) && |
|
((now.tv_sec - last.tv_sec) > IDLE_LIMIT)) |
|
{ |
|
Time::gettimeofday(&last); |
|
PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4, |
|
"Checking for Idle providers to unload."); |
|
try | try |
{ | { |
AutoMutex lock(_providerTableMutex); | AutoMutex lock(_providerTableMutex); |
|
|
PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL2, | PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL2, |
"Caught unexpected exception from UNLOAD_IDLE_PROVIDERS."); | "Caught unexpected exception from UNLOAD_IDLE_PROVIDERS."); |
} | } |
} |
|
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
} | } |
| |