ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/BDB/BDB.pm
(Generate patch)

Comparing BDB/BDB.pm (file contents):
Revision 1.4 by root, Mon Feb 5 23:46:15 2007 UTC vs.
Revision 1.8 by root, Wed May 9 06:42:23 2007 UTC

5=head1 SYNOPSIS 5=head1 SYNOPSIS
6 6
7 use BDB; 7 use BDB;
8 8
9=head1 DESCRIPTION 9=head1 DESCRIPTION
10
11See the eg/ directory in the distribution and the berkeleydb C
12documentation. This is inadequate, but the only sources of documentation
13known for this module so far.
10 14
11=head2 EXAMPLE 15=head2 EXAMPLE
12 16
13=head1 REQUEST ANATOMY AND LIFETIME 17=head1 REQUEST ANATOMY AND LIFETIME
14 18
66 70
67BEGIN { 71BEGIN {
68 our $VERSION = '0.1'; 72 our $VERSION = '0.1';
69 73
70 our @BDB_REQ = qw( 74 our @BDB_REQ = qw(
71 db_env_create db_env_open db_env_close 75 db_env_open db_env_close db_env_txn_checkpoint db_env_lock_detect
76 db_env_memp_sync db_env_memp_trickle
72 db_create db_open db_close db_compact db_sync db_put db_get db_pget 77 db_open db_close db_compact db_sync db_put db_get db_pget db_del db_key_range
73 db_txn_commit db_txn_abort 78 db_txn_commit db_txn_abort
79 db_c_close db_c_count db_c_put db_c_get db_c_pget db_c_del
80 db_sequence_open db_sequence_close
81 db_sequence_get db_sequence_remove
74 ); 82 );
75 our @EXPORT = (@BDB_REQ, qw(dbreq_pri dbreq_nice)); 83 our @EXPORT = (@BDB_REQ, qw(dbreq_pri dbreq_nice db_env_create db_create));
84 our @EXPORT_OK = qw(
76 our @EXPORT_OK = qw(poll_fileno poll_cb poll_wait flush 85 poll_fileno poll_cb poll_wait flush
77 min_parallel max_parallel max_idle 86 min_parallel max_parallel max_idle
78 nreqs nready npending nthreads 87 nreqs nready npending nthreads
79 max_poll_time max_poll_reqs); 88 max_poll_time max_poll_reqs
89 );
80 90
81 require XSLoader; 91 require XSLoader;
82 XSLoader::load ("BDB", $VERSION); 92 XSLoader::load ("BDB", $VERSION);
83} 93}
84 94
172Strictly equivalent to: 182Strictly equivalent to:
173 183
174 BDB::poll_wait, BDB::poll_cb 184 BDB::poll_wait, BDB::poll_cb
175 while BDB::nreqs; 185 while BDB::nreqs;
176 186
187=back
188
177=head3 CONTROLLING THE NUMBER OF THREADS 189=head3 CONTROLLING THE NUMBER OF THREADS
190
191=over 4
178 192
179=item BDB::min_parallel $nthreads 193=item BDB::min_parallel $nthreads
180 194
181Set the minimum number of AIO threads to C<$nthreads>. The current 195Set the minimum number of AIO threads to C<$nthreads>. The current
182default is C<8>, which means eight asynchronous operations can execute 196default is C<8>, which means eight asynchronous operations can execute

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines