{
    "mode": "perldoc",
    "parameter": "Log::Log4perl::Util::Semaphore",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Log%3A%3ALog4perl%3A%3AUtil%3A%3ASemaphore/json",
    "generated": "2026-06-16T10:16:13Z",
    "synopsis": "use Log::Log4perl::Util::Semaphore;\nmy $sem = Log::Log4perl::Util::Semaphore->new( key => \"abc\" );\n$sem->semlock();\n# ... critical section\n$sem->semunlock();\n$sem->semset( uid  => (getpwnam(\"hugo\"))[2],\ngid  => 102,\nmode => 0644\n);",
    "sections": {
        "NAME": {
            "content": "Log::Log4perl::Util::Semaphore - Easy to use semaphores\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Log::Log4perl::Util::Semaphore;\nmy $sem = Log::Log4perl::Util::Semaphore->new( key => \"abc\" );\n\n$sem->semlock();\n# ... critical section\n$sem->semunlock();\n\n$sem->semset( uid  => (getpwnam(\"hugo\"))[2],\ngid  => 102,\nmode => 0644\n);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Log::Log4perl::Util::Semaphore provides the synchronisation mechanism for the Synchronized.pm\nappender in Log4perl, but can be used independently of Log4perl.\n\nAs a convenience, the \"uid\" field accepts user names as well, which it translates into the\ncorresponding uid by running \"getpwnam\".\n",
            "subsections": []
        },
        "LICENSE": {
            "content": "Copyright 2002-2013 by Mike Schilli <m@perlmeister.com> and Kevin Goess <cpan@goess.org>.\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Please contribute patches to the project on Github:\n\nhttp://github.com/mschilli/log4perl\n\nSend bug reports or requests for enhancements to the authors via our\n\nMAILING LIST (questions, bug reports, suggestions/patches): log4perl-devel@lists.sourceforge.net\n\nAuthors (please contact them via the list above, not directly): Mike Schilli\n<m@perlmeister.com>, Kevin Goess <cpan@goess.org>\n\nContributors (in alphabetical order): Ateeq Altaf, Cory Bennett, Jens Berthold, Jeremy Bopp,\nHutton Davidson, Chris R. Donnelly, Matisse Enzer, Hugh Esco, Anthony Foiani, James FitzGibbon,\nCarl Franks, Dennis Gregorovic, Andy Grundman, Paul Harrington, Alexander Hartmaier David Hull,\nRobert Jacobson, Jason Kohles, Jeff Macdonald, Markus Peter, Brett Rann, Peter Rabbitson, Erik\nSelberg, Aaron Straup Cope, Lars Thegler, David Viner, Mac Yang.\n",
            "subsections": []
        }
    },
    "summary": "Log::Log4perl::Util::Semaphore - Easy to use semaphores",
    "flags": [],
    "examples": [],
    "see_also": []
}