stas 2004/10/13 15:43:24
Modified: src/docs/2.0/api/APR OS.pod
Log:
fix the current_thread_id entry
Revision Changes Path
1.3 +5 -5 modperl-docs/src/docs/2.0/api/APR/OS.pod
Index: OS.pod
===================================================================
RCS file: /home/cvs/modperl-docs/src/docs/2.0/api/APR/OS.pod,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -u -r1.2 -r1.3
--- OS.pod 22 Sep 2004 23:22:03 -0000 1.2
+++ OS.pod 13 Oct 2004 22:43:24 -0000 1.3
@@ -9,7 +9,7 @@
use APR::OS ();
- # get thread id
+ # get current thread id
my $tid = APR::OS::current_thread_id();
@@ -42,7 +42,7 @@
=head2 C<current_thread_id>
-Get the thread ID
+Get the current thread ID
$tid = APR::OS::current_thread_id();
@@ -50,9 +50,9 @@
=item ret: C<$tid> ( integer )
-That value is a thread ID under threaded MPMs, otherwise 0.
+under threaded MPMs returns the current thread ID, otherwise 0.
-=item since: 1.99_12
+=item since: 1.99_17
=back
@@ -62,7 +62,7 @@
use APR::OS ();
if (Apache::MPM->is_threaded) {
my $tid_obj = APR::OS::thread_current();
- print "TID: $$tid_obj";
+ print "TID: $tid";
}
else {
print "PID: $$";
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]