… | |
… | |
5 | =head1 SYNOPSIS |
5 | =head1 SYNOPSIS |
6 | |
6 | |
7 | use BDB; |
7 | use BDB; |
8 | |
8 | |
9 | =head1 DESCRIPTION |
9 | =head1 DESCRIPTION |
|
|
10 | |
|
|
11 | See the eg/ directory in the distribution and the berkeleydb C |
|
|
12 | documentation. This is inadequate, but the only sources of documentation |
|
|
13 | known 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 | |
… | |
… | |
63 | use strict 'vars'; |
67 | use strict 'vars'; |
64 | |
68 | |
65 | use base 'Exporter'; |
69 | use base 'Exporter'; |
66 | |
70 | |
67 | BEGIN { |
71 | BEGIN { |
68 | our $VERSION = '0.1'; |
72 | our $VERSION = '0.5'; |
69 | |
73 | |
70 | our @BDB_REQ = qw( |
74 | our @BDB_REQ = qw( |
71 | db_env_open db_env_close db_env_txn_checkpoint db_env_lock_detect |
75 | db_env_open db_env_close db_env_txn_checkpoint db_env_lock_detect |
72 | db_env_memp_sync db_env_memp_trickle |
76 | db_env_memp_sync db_env_memp_trickle |
73 | db_open db_close db_compact db_sync db_put db_get db_pget db_del db_key_range |
77 | db_open db_close db_compact db_sync db_put db_get db_pget db_del db_key_range |
… | |
… | |
178 | Strictly equivalent to: |
182 | Strictly equivalent to: |
179 | |
183 | |
180 | BDB::poll_wait, BDB::poll_cb |
184 | BDB::poll_wait, BDB::poll_cb |
181 | while BDB::nreqs; |
185 | while BDB::nreqs; |
182 | |
186 | |
|
|
187 | =back |
|
|
188 | |
183 | =head3 CONTROLLING THE NUMBER OF THREADS |
189 | =head3 CONTROLLING THE NUMBER OF THREADS |
|
|
190 | |
|
|
191 | =over 4 |
184 | |
192 | |
185 | =item BDB::min_parallel $nthreads |
193 | =item BDB::min_parallel $nthreads |
186 | |
194 | |
187 | Set the minimum number of AIO threads to C<$nthreads>. The current |
195 | Set the minimum number of AIO threads to C<$nthreads>. The current |
188 | default is C<8>, which means eight asynchronous operations can execute |
196 | default is C<8>, which means eight asynchronous operations can execute |