OSSP CVS Repository

ossp - Difference in ossp-pkg/pth/pth.pod versions 1.155 and 1.156
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/pth/pth.pod 1.155 -> 1.156

--- pth.pod      2002/10/23 13:55:49     1.155
+++ pth.pod      2002/10/23 14:04:00     1.156
@@ -156,6 +156,7 @@
 
 =item B<Standard POSIX Replacement API>
 
+pth_nanosleep,
 pth_usleep,
 pth_sleep,
 pth_waitpid,
@@ -1585,6 +1586,18 @@
 
 =over 4
 
+=item int B<pth_nanosleep>(const struct timespec *I<rqtp>, struct timespec *I<rmtp>);
+
+This is a variant of the POSIX nanosleep(3) function. It suspends the
+current threads execution until the amount of time in I<rqtp> elapsed.
+The thread is guaranteed to not wake up before this time, but because
+of the non-preemptive scheduling nature of B<Pth>, it can be awakened
+later, of course. If I<rmtp> is not C<NULL>, the C<timespec> structure
+it references is updated to contain the unslept amount (the request time
+minus the time actually slept time). The difference between nanosleep(3)
+and pth_nanosleep(3) is that that pth_nanosleep(3) suspends only the
+execution of the current thread and not the whole process.
+
 =item int B<pth_usleep>(unsigned int I<usec>);
 
 This is a variant of the 4.3BSD usleep(3) function. It suspends the current

CVSTrac 2.0.1