summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/Test2/IPC/Driver.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlperl/lib/Test2/IPC/Driver.pm')
-rwxr-xr-xMaster/tlpkg/tlperl/lib/Test2/IPC/Driver.pm27
1 files changed, 6 insertions, 21 deletions
diff --git a/Master/tlpkg/tlperl/lib/Test2/IPC/Driver.pm b/Master/tlpkg/tlperl/lib/Test2/IPC/Driver.pm
index a4d72557327..dbcb7004b3f 100755
--- a/Master/tlpkg/tlperl/lib/Test2/IPC/Driver.pm
+++ b/Master/tlpkg/tlperl/lib/Test2/IPC/Driver.pm
@@ -2,7 +2,7 @@ package Test2::IPC::Driver;
use strict;
use warnings;
-our $VERSION = '1.302133';
+our $VERSION = '1.302162';
use Carp qw/confess/;
@@ -18,7 +18,8 @@ sub import {
test2_ipc_add_driver($class);
}
-sub use_shm { 0 }
+sub pending { -1 }
+sub set_pending { -1 }
for my $meth (qw/send cull add_hub drop_hub waiting is_viable/) {
no strict 'refs';
@@ -89,11 +90,6 @@ error.
This is the same as C<< $ipc->abort($msg) >> except that it uses
C<Carp::longmess> to add a stack trace to the message.
-=item $false = $self->use_shm
-
-The base class always returns false for this method. You may override it if you
-wish to use the SHM made available in L<Test2::API>/L<Test2::API::Instance>.
-
=back
=head1 LOADING DRIVERS
@@ -141,8 +137,7 @@ load it too late for it to be effective.
... # Send the event to the proper hub.
- # If you are using the SHM you should notify other procs/threads that
- # there is a pending event.
+ # This may notify other procs/threads that there is a pending event.
Test2::API::test2_ipc_set_pending($uniq_val);
}
@@ -213,8 +208,7 @@ process+thread.
... # Send the event to the proper hub.
- # If you are using the SHM you should notify other procs/threads that
- # there is a pending event.
+ # This may notify other procs/threads that there is a pending event.
Test2::API::test2_ipc_set_pending($uniq_val);
}
@@ -258,15 +252,6 @@ This is a hook called by C<< Test2::IPC::Driver->abort() >>. This is your
chance to cleanup when an abort happens. You cannot prevent the abort, but you
can gracefully except it.
-=item $bool = $ipc->use_shm()
-
-True if you want to make use of the L<Test2::API>/L<Test2::API::Instance> SHM.
-
-=item $bites = $ipc->shm_size()
-
-Use this to customize the size of the SHM space. There are no guarantees about
-what the size will be if you do not implement this.
-
=back
=head1 SOURCE
@@ -292,7 +277,7 @@ F<http://github.com/Test-More/test-more/>.
=head1 COPYRIGHT
-Copyright 2018 Chad Granum E<lt>exodist@cpan.orgE<gt>.
+Copyright 2019 Chad Granum E<lt>exodist@cpan.orgE<gt>.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.