Index: ossp-pkg/pth/ChangeLog RCS File: /v/ossp/cvs/ossp-pkg/pth/ChangeLog,v rcsdiff -q -kk '-r1.552' '-r1.553' -u '/v/ossp/cvs/ossp-pkg/pth/ChangeLog,v' 2>/dev/null --- ChangeLog 2001/07/30 18:29:32 1.552 +++ ChangeLog 2001/08/06 17:35:38 1.553 @@ -19,7 +19,11 @@ | ||__ _| __|_(_) |_|_____________________________________________________________ - Changes between 1.4.0 and 1.4.1 (24-Mar-2001 to xx-Mar-2001) + Changes between 1.4.0 and 1.4.1 (24-Mar-2001 to xx-Aug-2001) + + *) Replaced antiquated PTH_FLAG_NOJOIN references with the correct + PTH_ATTR_JOINABLE references in the manual page. + [Takashi Ishihara ] *) Fixed a (not very subtle) bug in pth_writev_ev() that screwed up output if a partial write happened. Index: ossp-pkg/pth/THANKS RCS File: /v/ossp/cvs/ossp-pkg/pth/THANKS,v rcsdiff -q -kk '-r1.80' '-r1.81' -u '/v/ossp/cvs/ossp-pkg/pth/THANKS,v' 2>/dev/null --- THANKS 2001/07/30 18:29:32 1.80 +++ THANKS 2001/08/06 17:35:38 1.81 @@ -46,6 +46,7 @@ o Thomas Hoffmann o Samuel A Horwitz o Andrew Hunter + o Takashi Ishihara o Jim Jagielski o Jeremie o Dmitry E. Kiselyov Index: ossp-pkg/pth/pth.pod RCS File: /v/ossp/cvs/ossp-pkg/pth/pth.pod,v rcsdiff -q -kk '-r1.147' '-r1.148' -u '/v/ossp/cvs/ossp-pkg/pth/pth.pod,v' 2>/dev/null --- pth.pod 2001/07/12 07:20:04 1.147 +++ pth.pod 2001/08/06 17:35:38 1.148 @@ -705,9 +705,10 @@ =item C (read-write> [C] -The thread detachment type, C indicates a joinable thread, C -indicates a detached thread. When a the is detached after termination it is -immediately kicked out of the system instead of inserted into the dead queue. +The thread detachment type, C indicates a joinable thread, +C indicates a detached thread. When a thread is detached, +after termination it is immediately kicked out of the system instead of +inserted into the dead queue. =item C (read-write) [C] @@ -978,22 +979,24 @@ =item int B(pth_t I, void **I); -This joins the current thread with the thread specified via I. It first -suspends the current thread until the I thread has terminated. Then it is -awakened and stores the value of I's pth_exit(3) call into *I (if -I and not C) and returns to the caller. A thread can be joined -only when it was I spawned with C. A thread can only be -joined once, i.e., after the pth_join(3) call the thread I is removed -from the system. +This joins the current thread with the thread specified via I. +It first suspends the current thread until the I thread has +terminated. Then it is awakened and stores the value of I's +pth_exit(3) call into *I (if I and not C) and +returns to the caller. A thread can be joined only when it has the +attribute C set to C (the default). A thread +can only be joined once, i.e., after the pth_join(3) call the thread +I is completely removed from the system. =item void B(void *I); -This terminates the current thread. Whether it's immediately removed from the -system or inserted into the dead queue of the scheduler depends on its join -type which was specified at spawning time. When it was spawned with -C it's immediately removed and I is ignored. -Else the thread is inserted into the dead queue and I remembered -for a pth_join(3) call by another thread. +This terminates the current thread. Whether it's immediately removed +from the system or inserted into the dead queue of the scheduler depends +on its join type which was specified at spawning time. If it has the +attribute C set to C, it's immediately removed +and I is ignored. Else the thread is inserted into the dead queue +and I remembered for a subsequent pth_join(3) call by another +thread. =back