Log::Dispatch::FileRotate::Mutex

Section: User Contributed Perl Documentation (3)
Updated: 2021-01-27
Page Index
 

NAME

Log::Dispatch::FileRotate::Mutex - Flock Based File Mutex.  

VERSION

version 1.36  

SYNOPSIS

Internal Use Only!  

DESCRIPTION

Internal Use Only!  

METHODS

 

new($path)

Create a new mutex for the given file path. Only one mutex per path should be created. The path will not actually be opened or locked until you call lock.  

lock()

Obtains a lock on the path. If the thread id or pid has changed since the path was opened, the path will be re-opened automatically in this thread or process.  

unlock()

Releases the lock if the current thread or process is holding it.  

pid(): string

Get the current process or thread id  

SOURCE

The development version is on github at <https://https://github.com/mschout/perl-log-dispatch-filerotate> and may be cloned from <git://https://github.com/mschout/perl-log-dispatch-filerotate.git>  

BUGS

Please report any bugs or feature requests on the bugtracker website <https://github.com/mschout/perl-log-dispatch-filerotate/issues>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.  

AUTHOR

Michael Schout <mschout@cpan.org>  

COPYRIGHT AND LICENSE

This software is copyright (c) 2005 by Mark Pfeiffer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


 

Index

NAME
VERSION
SYNOPSIS
DESCRIPTION
METHODS
new($path)
lock()
unlock()
pid(): string
SOURCE
BUGS
AUTHOR
COPYRIGHT AND LICENSE