version 1.40, 2006/08/23 19:47:49
|
version 1.41, 2006/09/06 19:48:17
|
|
|
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 |
{ | { |
_provider_ctrl (UNLOAD_IDLE_PROVIDERS, this, (void *) 0); | _provider_ctrl (UNLOAD_IDLE_PROVIDERS, this, (void *) 0); |
|
|
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 (); |
} | } |
| |