You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-dev@perl.apache.org by "Evan A. Zacks" <e...@zacks.org> on 2005/07/01 21:07:20 UTC

[patch] modperl 2 docs (APR::OS)

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

Re: [patch] modperl 2 docs (APR::OS)

Posted by Stas Bekman <st...@stason.org>.
Evan A. Zacks wrote:
 > Patch is inline this time. Sorry about that.

Thanks Evan, committed.

 > -          ? "$$." . ${ APR::OS::thread_current() }
 > +          ? "$$." . ${ APR::OS::current_thread_id() }


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org


Re: [patch] modperl 2 docs (APR::OS)

Posted by Stas Bekman <st...@stason.org>.
(that's an old email that I think never left my outbox, sorry about that)

Evan A. Zacks wrote:
> Patch is inline this time. Sorry about that.

Thanks Evan, committed.

> -          ? "$$." . ${ APR::OS::thread_current() }
> +          ? "$$." . ${ APR::OS::current_thread_id() }

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org


Re: [patch] modperl 2 docs (APR::OS)

Posted by "Evan A. Zacks" <e...@zacks.org>.
Patch is inline this time. Sorry about that.

Thanks,
-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: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org