perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From go...@apache.org
Subject cvs commit: modperl-docs/src/docs/2.0/api/APR OS.pod
Date Wed, 22 Sep 2004 23:22:03 GMT
gozer       2004/09/22 16:22:03

  Modified:    src/docs/2.0/api/APR OS.pod
  Log:
  APR::OS::thread_current renamed APR::OS::current_thread_id and
  now returns the actual thread_id instead of an object that
  needed to be dereferenced to get at the thread_id
  
  Revision  Changes    Path
  1.2       +4 -7      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- OS.pod	19 Aug 2004 06:03:00 -0000	1.1
  +++ OS.pod	22 Sep 2004 23:22:03 -0000	1.2
  @@ -10,8 +10,7 @@
     use APR::OS ();
     
     # get thread id
  -  my $tid_obj = APR::OS::thread_current();
  -  my $tid = $$tid_obj;
  +  my $tid = APR::OS::current_thread_id();
   
   
   
  @@ -41,17 +40,15 @@
   
   
   
  -=head2 C<thread_current>
  +=head2 C<current_thread_id>
   
   Get the thread ID
   
  -  $tid_obj = APR::OS::thread_current();
  +  $tid = APR::OS::current_thread_id();
   
   =over 4
   
  -=item ret: C<$tid_obj> ( C<APR::OS::Thread> object )
  -
  -To get the thread id dereference it: C<$$tid_obj>.
  +=item ret: C<$tid> ( integer )
   
   That value is a thread ID under threaded MPMs, otherwise 0.
   
  
  
  

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


Mime
View raw message