The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::dupfind::Threaded::Overrides - Methods and attributes that have to be overridden when threading

VERSION

version 0.172690

DESCRIPTION

Some of the methods in App::dupfind::Common and App::dupfind::Guts need to be overridden here in order to make thread-safe versions of them, and/or versions of the methods that implement support for shared variables that will be passed around between threads during the map-reduce operations implemented by App::dupfind::Threaded::MapReduce

Please don't use this module by itself. It is for internal use only.

Because there are no functional differences between these methods and the ones they override, please refer to the original documentation for them in the POD of these classes:

METHODS THIS CLASS OVERRIDES

add_stats

Not overridden, but necessary in order to implement the simple hashref of stats that is used in the non-threaded version in App::dupfind::Common. $self->add_stats allows App::dupfind::Threaded::MapReduce::Digest to accomplish the same thing, but in a thread-safe way.

The stats mechanism is simply there to keep track of cache hits and misses while calculating file digests.

sort_dups

Overridden from App::dupfind::Common

stats

The sibling method to add_stats. The same concept and description applies (see above).