Unix and Linux Discussions Tagged with api |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
11 |
20,852 |
UNIX for Advanced & Expert Users |
|
|
|
23 |
8,735 |
What is on Your Mind? |
|
|
|
2 |
1,075 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,505 |
What is on Your Mind? |
|
|
|
0 |
2,226 |
Web Development |
|
|
|
0 |
1,089 |
Advertise with Us |
|
|
|
0 |
1,358 |
Software Releases - RSS News |
|
|
|
0 |
2,126 |
MySQL DevZone RSS |
|
|
|
0 |
3,282 |
Solaris BigAdmin RSS |
|
|
|
0 |
770 |
Software Releases - RSS News |
|
|
|
3 |
4,586 |
Programming |
|
|
|
0 |
810 |
Software Releases - RSS News |
|
|
|
4 |
8,765 |
Programming |
|
|
|
0 |
946 |
Software Releases - RSS News |
|
|
|
0 |
4,638 |
Oracle Updates (RSS) |
|
|
|
0 |
2,409 |
Oracle Updates (RSS) |
|
|
|
0 |
1,509 |
Software Releases - RSS News |
|
|
|
3 |
3,050 |
Programming |
|
|
|
2 |
5,447 |
Programming |
|
|
|
1 |
6,233 |
Programming |
|
|
|
5 |
10,479 |
Programming |
|
|
|
4 |
7,655 |
UNIX for Dummies Questions & Answers |
libapache2-mod-perl2-2.0.7::docs::api::APR::OS(3pm) User Contributed Perl Documentation libapache2-mod-perl2-2.0.7::docs::api::APR::OS(3pm)
NAME
APR::OS - Perl API for Platform-specific APR API
Synopsis
use APR::OS ();
# get current thread id
my $tid = APR::OS::current_thread_id();
Description
"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.
API
"APR::OS" provides the following methods:
"current_thread_id"
Get the current thread ID
$tid = APR::OS::current_thread_id();
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->is_threaded) {
my $tid_obj = APR::OS::current_thread_id();
print "TID: $tid";
}
else {
print "PID: $$";
}
See Also
mod_perl 2.0 documentation.
Copyright
mod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0.
Authors
The mod_perl development team and numerous contributors.
perl v5.14.2 2011-02-08 libapache2-mod-perl2-2.0.7::docs::api::APR::OS(3pm)