version 1.190.2.8, 2006/10/27 12:22:47
|
version 1.190.2.9, 2006/10/27 13:03:17
|
|
|
| |
static struct timeval lastIdleCleanupTime = {0, 0}; | static struct timeval lastIdleCleanupTime = {0, 0}; |
| |
if (now.tv_sec - lastIdleCleanupTime.tv_sec >= 300) |
if (now.tv_sec - lastIdleCleanupTime.tv_sec > 300) |
{ | { |
lastIdleCleanupTime.tv_sec = now.tv_sec; | lastIdleCleanupTime.tv_sec = now.tv_sec; |
try | try |
|
|
SLPThread.run(); | SLPThread.run(); |
#else | #else |
// Create a separate thread, detach and call function to execute the startup. | // Create a separate thread, detach and call function to execute the startup. |
printf("%s %d\n", __FUNCTION__, __LINE__); |
|
Thread t( _callSLPProvider, 0, true ); | Thread t( _callSLPProvider, 0, true ); |
t.run(); | t.run(); |
#endif | #endif |