<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"># 
# /*
#  * *********** WARNING **************
#  * This file generated by ModPerl::WrapXS/0.01
#  * Any changes made here will be lost
#  * ***********************************
#  * 01: lib/ModPerl/Code.pm:709
#  * 02: lib/ModPerl/WrapXS.pm:633
#  * 03: lib/ModPerl/WrapXS.pm:1182
#  * 04: Makefile.PL:427
#  * 05: Makefile.PL:329
#  * 06: Makefile.PL:58
#  */
# 


package APR::ThreadRWLock;

use strict;
use warnings FATAL =&gt; 'all';


use APR ();
use APR::XSLoader ();
our $VERSION = '0.009000';
APR::XSLoader::load __PACKAGE__;



1;
__END__

=head1 NAME

APR::ThreadRWLock - Perl API for APR thread read/write locks

=head1 Synopsis

  use APR::ThreadRWLock ();

  my $mutex = APR::ThreadRWLock-&gt;new($r-&gt;pool);
  $mutex-&gt;rdlock;
  $mutex-&gt;wrlock;
  $mutex-&gt;tryrdlock;
  $mutex-&gt;trywrlock;
  $mutex-&gt;unlock;


=head1 Description

C&lt;APR::ThreadRWLock&gt; interfaces APR thread read/write locks.

See F&lt;srclib/apr/locks/unix/thread_rwlock.c&gt; in your Apache source tree.
At the time of this writing these methods are not supported on all
platforms. Thus, check your libraries!




=head1 API

C&lt;APR::ThreadRWLock&gt; provides the following functions and/or methods:


=head1 Unsupported API

C&lt;APR::ThreadRWLock&gt; also provides auto-generated Perl interface for a
few other methods which aren't tested at the moment and therefore
their API is a subject to change. These methods will be finalized
later as a need arises. If you want to rely on any of the following
methods please contact the L&lt;the mod_perl development mailing
list|maillist::dev&gt; so we can help each other take the steps necessary
to shift the method to an officially supported API.





=head2 C&lt;DESTROY&gt;

META: Autogenerated - needs to be reviewed/completed

Destroy the lock and free the associated memory.

  $lock-&gt;DESTROY();

=over 4

=item obj: C&lt;$lock&gt;
( C&lt;L&lt;APR::ThreadRWLock object|docs::2.0::api::APR::ThreadRWLock&gt;&gt; )

the lock to destroy.

=item ret: no return value

=item since: subject to change

=back





=head2 C&lt;rdlock&gt;

META: Autogenerated - needs to be reviewed/completed

Acquire the read lock for the given lock. The calling thread acquires the
read lock if a writer does not hold the lock and there are  no  writers
blocked on the lock. Otherwize it is put to sleep until these conditions
are met.

  $ret = $lock-&gt;rdlock();

=over 4

=item obj: C&lt;$lock&gt;
( C&lt;L&lt;APR::ThreadRWLock object|docs::2.0::api::APR::ThreadRWLock&gt;&gt; )

the lock on which to acquire the lock.

=item ret: C&lt;$ret&gt; ( integer )

=item since: subject to change


=back



=head2 C&lt;tryrdlock&gt;

META: Autogenerated - needs to be reviewed/completed

Performs the same operation as C&lt;rdlock&gt; with the exception that the
function shall fail if the thread would be blocked.

  $ret = $lock-&gt;tryrdlock();

=over 4

=item obj: C&lt;$lock&gt;
( C&lt;L&lt;APR::ThreadRWLock object|docs::2.0::api::APR::ThreadRWLock&gt;&gt; )

the lock on which to acquire the lock.

=item ret: C&lt;$ret&gt; ( integer )

=item since: subject to change


=back



=head2 C&lt;wrlock&gt;

META: Autogenerated - needs to be reviewed/completed

Acquire the write lock for the given lock. The calling thread acquires the
write lock if if no other thread (reader or writer) holds it. Otherwize it
is put to sleep until this condition is met.

  $ret = $lock-&gt;wrlock();

=over 4

=item obj: C&lt;$lock&gt;
( C&lt;L&lt;APR::ThreadRWLock object|docs::2.0::api::APR::ThreadRWLock&gt;&gt; )

the lock on which to acquire the lock.

=item ret: C&lt;$ret&gt; ( integer )

=item since: subject to change


=back



=head2 C&lt;trywrlock&gt;

META: Autogenerated - needs to be reviewed/completed

Performs the same operation as C&lt;wrlock&gt; with the exception that the
function shall fail if the thread would be blocked.

  $ret = $lock-&gt;trywrlock();

=over 4

=item obj: C&lt;$lock&gt;
( C&lt;L&lt;APR::ThreadRWLock object|docs::2.0::api::APR::ThreadRWLock&gt;&gt; )

the lock on which to acquire the lock.

=item ret: C&lt;$ret&gt; ( integer )

=item since: subject to change


=back



=head2 C&lt;new&gt;

Create a new lock

  my $lock = APR::ThreadRWLock-&gt;new($p);

=over

=item obj: C&lt;APR::ThreadRWLock&gt; ( class name )

=item arg1: C&lt;$p&gt;
( C&lt;L&lt;APR::Pool object|docs::2.0::api::APR::Pool&gt;&gt; )

=item ret: C&lt;$lock&gt;
( C&lt;L&lt;APR::ThreadRWLock object|docs::2.0::api::APR::ThreadRWLock&gt;&gt; )

=item since: subject to change

=back


=head2 C&lt;pool_get&gt;

META: Autogenerated - needs to be reviewed/completed

META: should probably be renamed to pool(), like all other pool
accessors

Get the pool used by this thread_lock.

  $ret = $obj-&gt;pool_get();

=over 4

=item obj: C&lt;$obj&gt;
( C&lt;L&lt;APR::ThreadRWLock object|docs::2.0::api::APR::ThreadRWLock&gt;&gt; )



=item ret: C&lt;$ret&gt;
( C&lt;L&lt;APR::Pool object|docs::2.0::api::APR::Pool&gt;&gt; )

apr_pool_t the pool

=item since: subject to change

=back





=head2 C&lt;unlock&gt;

META: Autogenerated - needs to be reviewed/completed

Release the lock for the given lock.

  $ret = $lock-&gt;unlock();

=over 4

=item obj: C&lt;$lock&gt;
( C&lt;L&lt;APR::ThreadRWLock object|docs::2.0::api::APR::ThreadRWLock&gt;&gt; )

the lock from which to release the lock.

=item ret: C&lt;$ret&gt; ( integer )


=item since: subject to change


=back




=head1 See Also

L&lt;mod_perl 2.0 documentation|docs::2.0::index&gt;.




=head1 Copyright

mod_perl 2.0 and its core modules are copyrighted under
The Apache Software License, Version 2.0.




=head1 Authors

L&lt;The mod_perl development team and numerous
contributors|about::contributors::people&gt;.

=cut

</pre></body></html>