version 1.7, 2007/01/11 16:21:54
|
version 1.8, 2007/02/18 05:28:26
|
|
|
{ | { |
#if defined(PEGASUS_HAVE_NANOSLEEP) | #if defined(PEGASUS_HAVE_NANOSLEEP) |
| |
struct timespec wait; |
struct timespec wait, remwait; |
wait.tv_sec = msec / 1000; | wait.tv_sec = msec / 1000; |
wait.tv_nsec = (msec % 1000) * 1000000; | wait.tv_nsec = (msec % 1000) * 1000000; |
nanosleep(&wait, NULL); |
|
|
while ((nanosleep(&wait, &remwait) == -1) && (errno == EINTR)) |
|
{ |
|
wait.tv_sec = remwait.tv_sec; |
|
wait.tv_nsec = remwait.tv_nsec; |
|
} |
| |
#elif defined(PEGASUS_PLATFORM_OS400_ISERIES_IBM) | #elif defined(PEGASUS_PLATFORM_OS400_ISERIES_IBM) |
| |