Hello,
On two different pages in the modperl 2 documentation,
the method
APR::OS::current_thread_id()
is listed as
APR::OS::thread_current()
which apparently doesn't exist. Attached is a patch to fix these
cases.
Thanks for a great resource, the modperl docs are fantastic.
Hope this helps,
-E
Index: src/docs/2.0/user/handlers/http.pod
===================================================================
--- src/docs/2.0/user/handlers/http.pod (revision 208781)
+++ src/docs/2.0/user/handlers/http.pod (working copy)
@@ -1562,7 +1562,7 @@
require Apache2::MPM;
require APR::OS;
return Apache2::MPM->is_threaded
- ? "$$." . ${ APR::OS::thread_current() }
+ ? "$$." . ${ APR::OS::current_thread_id() }
: $$;
}
Index: src/docs/2.0/user/coding/coding.pod
===================================================================
--- src/docs/2.0/user/coding/coding.pod (revision 208781)
+++ src/docs/2.0/user/coding/coding.pod (working copy)
@@ -178,7 +178,7 @@
use Apache2::MPM ();
if (Apache2::MPM->is_threaded) {
require APR::OS;
- my $tid = APR::OS::thread_current();
+ my $tid = APR::OS::current_thread_id();
print "current thread id: $tid (pid: $$)";
}
else {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]