version 1.11, 2007/10/17 20:37:27
|
version 1.13.2.4.2.1, 2008/07/01 19:28:03
|
|
|
#if defined(PEGASUS_OS_TYPE_WINDOWS) | #if defined(PEGASUS_OS_TYPE_WINDOWS) |
# include <sys/timeb.h> | # include <sys/timeb.h> |
#endif | #endif |
|
#if defined(PEGASUS_OS_ZOS) |
|
# include <unistd.h> |
|
#endif |
|
|
|
#if defined(PEGASUS_OS_ZOS) |
|
# include <unistd.h> |
|
#endif |
|
|
|
#if defined(PEGASUS_OS_SOLARIS) |
|
# include <unistd.h> |
|
#endif |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
} | } |
while (end.millitm > now.millitm && end.time >= now.time); | while (end.millitm > now.millitm && end.time >= now.time); |
| |
#elif defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) |
#else |
int seconds; |
|
if (msec < 1000) | if (msec < 1000) |
{ | { |
usleep(msec*1000); | usleep(msec*1000); |
|
|
// Usleep the remaining micro seconds | // Usleep the remaining micro seconds |
usleep( (msec*1000) % 1000000 ); | usleep( (msec*1000) % 1000000 ); |
} | } |
|
|
#endif | #endif |
} | } |
| |
|
|
| |
// Scheduling policy: | // Scheduling policy: |
| |
#if defined(PEGASUS_PLATFORM_SOLARIS_SPARC_GNU) || \ |
#if defined(PEGASUS_OS_SOLARIS) |
defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC) |
|
# if defined SUNOS_5_7 |
|
pthread_attr_setschedpolicy(&attr, SCHED_RR); |
|
# else |
|
pthread_attr_setschedpolicy(&attr, SCHED_OTHER); | pthread_attr_setschedpolicy(&attr, SCHED_OTHER); |
# endif |
|
#endif // PEGASUS_PLATFORM_SOLARIS_SPARC_GNU |
#endif /* defined(PEGASUS_OS_SOLARIS) */ |
| |
// Create thread: | // Create thread: |
| |