1Util::Semaphore(3)    User Contributed Perl Documentation   Util::Semaphore(3)
2
3
4

NAME

6       Log::Log4perl::Util::Semaphore - Easy to use semaphores
7

SYNOPSIS

9           use Log::Log4perl::Util::Semaphore;
10           my $sem = Log::Log4perl::Util::Semaphore->new( key => "abc" );
11
12           $sem->semlock();
13             # ... critical section
14           $sem->semunlock();
15
16           $sem->semset( uid  => (getpwnam("hugo"))[2],
17                         gid  => 102,
18                         mode => 0644
19                       );
20

DESCRIPTION

22       Log::Log4perl::Util::Semaphore provides the synchronisation mechanism
23       for the Synchronized.pm appender in Log4perl, but can be used
24       independently of Log4perl.
25
26       As a convenience, the "uid" field accepts user names as well, which it
27       translates into the corresponding uid by running "getpwnam".
28

LICENSE

30       Copyright 2002-2013 by Mike Schilli <m@perlmeister.com> and Kevin Goess
31       <cpan@goess.org>.
32
33       This library is free software; you can redistribute it and/or modify it
34       under the same terms as Perl itself.
35

AUTHOR

37       Please contribute patches to the project on Github:
38
39           http://github.com/mschilli/log4perl
40
41       Send bug reports or requests for enhancements to the authors via our
42
43       MAILING LIST (questions, bug reports, suggestions/patches):
44       log4perl-devel@lists.sourceforge.net
45
46       Authors (please contact them via the list above, not directly): Mike
47       Schilli <m@perlmeister.com>, Kevin Goess <cpan@goess.org>
48
49       Contributors (in alphabetical order): Ateeq Altaf, Cory Bennett, Jens
50       Berthold, Jeremy Bopp, Hutton Davidson, Chris R. Donnelly, Matisse
51       Enzer, Hugh Esco, Anthony Foiani, James FitzGibbon, Carl Franks, Dennis
52       Gregorovic, Andy Grundman, Paul Harrington, Alexander Hartmaier  David
53       Hull, Robert Jacobson, Jason Kohles, Jeff Macdonald, Markus Peter,
54       Brett Rann, Peter Rabbitson, Erik Selberg, Aaron Straup Cope, Lars
55       Thegler, David Viner, Mac Yang.
56
57
58
59perl v5.30.1                      2020-01-30                Util::Semaphore(3)
Impressum