line |
true |
false |
branch |
107
|
0 |
12 |
unless defined $epoll |
176
|
0 |
41 |
if $self->{'pid'} != $$ |
181
|
41 |
0 |
defined $timeout ? : |
183
|
1 |
40 |
if keys %{$$self{'fakeevents'};} |
189
|
0 |
41 |
if not defined $ret and $! != 4 |
208
|
1 |
0 |
if ($bits & 1) |
209
|
1 |
0 |
if $watch->[1] |
213
|
1 |
0 |
if ($bits & 2) |
214
|
1 |
0 |
if $watch->[2] |
218
|
0 |
1 |
if ($bits & 4) |
219
|
0 |
0 |
if $watch->[3] |
226
|
17 |
0 |
if ($sigslot->pending) |
237
|
0 |
41 |
if defined $ret and $ret == $self->{'maxevents'} |
249
|
3 |
11 |
if $self->{'pid'} != $$ |
271
|
4 |
3 |
if ($events->{'in'} or $events->{'hup'} or $events->{'err'}) |
272
|
9 |
2 |
if $watch->[1] |
275
|
5 |
5 |
if ($events->{'out'} or $events->{'hup'} or $events->{'err'}) |
276
|
2 |
7 |
if $watch->[2] |
279
|
6 |
8 |
if ($events->{'hup'} or $events->{'err'}) |
280
|
2 |
4 |
if $watch->[3] |
285
|
9 |
5 |
if $params{'on_read_ready'} |
286
|
5 |
9 |
if $params{'on_write_ready'} |
287
|
2 |
12 |
if $params{'on_hangup'} |
290
|
10 |
4 |
if $mask & 1 |
291
|
5 |
9 |
if $mask & 2 |
292
|
2 |
12 |
if $mask & 4 |
296
|
13 |
1 |
if (not $curmask) { } |
|
1 |
0 |
elsif ($mask != $curmask) { } |
297
|
0 |
13 |
if defined $self->{'refaddr_for_fileno'}{$fd} |
301
|
12 |
1 |
if (defined $epoll->add($handle, \@bits, $cb)) { } |
|
1 |
0 |
elsif ($! == 1) { } |
316
|
0 |
1 |
unless $self->{'refaddr_for_fileno'}{$fd} == &refaddr($handle) |
319
|
0 |
1 |
if (exists $fakeevents->{$fd}) { } |
323
|
0 |
1 |
unless defined $epoll->modify($handle, \@bits, $cb) |
336
|
0 |
11 |
if $self->{'pid'} != $$ |
345
|
0 |
11 |
unless my $curmask = $self->{'masks'}{$fd} |
346
|
0 |
11 |
unless my $cb = $self->{'callbacks'}{$fd} |
349
|
6 |
5 |
if $params{'on_read_ready'} |
350
|
5 |
6 |
if $params{'on_write_ready'} |
351
|
2 |
9 |
if $params{'on_hangup'} |
355
|
0 |
11 |
unless $self->{'refaddr_for_fileno'}{$fd} == &refaddr($handle) |
358
|
1 |
10 |
if ($mask) { } |
359
|
0 |
1 |
if (exists $fakeevents->{$fd}) { } |
364
|
1 |
0 |
if $mask & 1 |
365
|
0 |
1 |
if $mask & 2 |
366
|
0 |
1 |
if $mask & 4 |
368
|
0 |
1 |
unless defined $epoll->modify($handle, \@bits, $cb) |
375
|
1 |
9 |
if (exists $fakeevents->{$fd}) { } |
379
|
0 |
9 |
unless defined $epoll->delete($handle) |
395
|
0 |
5 |
unless exists $SIG{$signal} |
411
|
0 |
5 |
unless sigaction($signum, $sigaction) |
419
|
0 |
5 |
unless exists $SIG{$signal} |
439
|
0 |
3 |
unless my $watches = $self->{'iowatches'} |