version 1.13, 2008/05/21 10:44:48
|
version 1.14, 2008/09/02 14:11:21
|
|
|
# include <unistd.h> | # include <unistd.h> |
#endif | #endif |
| |
|
#if defined(PEGASUS_OS_SOLARIS) |
|
# include <unistd.h> |
|
#endif |
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
void Threads::sleep(int msec) | void Threads::sleep(int msec) |
|
|
| |
// 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: |
| |