Manual Pages for UNIX Darwin command on man APR::OS
MyWebUniversity

Manual Pages for UNIX Darwin command on man APR::OS

apachemodperl-1a0p1a.c1h~e2U:sm:eomrdodCpoepnretlrr-li1-b02u1.t.0e1.d~22:P::e:drmolocdsD:op:ceaurpmlie-:n2:t.Aa0Pt.Ri2:o::n:OdSo(c3s)::api::APR::OS(3)

NAME

APR::OS - Perl API for Platform-specific APR API

SSyynnooppssiiss

use APR::OS ();

# get current thread id

my $tid = APR::OS::currentthreadid();

DDeessccrriippttiioonn

"APR::OS" provides the Perl interface to platform-specific APR API.

You should be extremely careful when relying on any of the API provided by this module, since they are no portable. So if you use those you

application will be non-portable as well.

AAPPII

"APR::OS" provides the following methods:

""ccuurrrreenntttthhrreeaaddiidd"" Get the current thread ID

$tid = APR::OS::currentthreadid();

ret: $tid ( integer )

under threaded MPMs returns the current thread ID, otherwise 0. since: 2.0.00 Example: use Apache2::MPM ();

use APR::OS ();

if (Apache2::MPM->isthreaded) {

my $tidobj = APR::OS::currentthreadid();

print "TID: $tid";

} else {

print "PID: $$";

} SSeeee AAllssoo modperl 2.0 documentation. CCooppyyrriigghhtt modperl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. AAuutthhoorrss The modperl development team and numerous contributors.

perl v5.8.8 apachemodperl-10210.015~-21:0:-m2o0dperl-2.0.2::docs::api::APR::OS(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™