Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Devel::GlobalDestruction 0.09_01

    Download button

    No screenshots available
    Downloads: 171  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Florian Ragwitz | More programs
    Perl Artistic License / FREE
    September 22nd, 2012, 10:08 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Devel::GlobalDestruction description

    Expose the flag which marks global destruction

    Perl's global destruction is a little tricky to deal with WRT finalizers because it's not ordered and objects can sometimes disappear.

    Writing defensive destructors is hard and annoying, and usually if global destruction is happenning you only need the destructors that free up non process local resources to actually execute.

    For these constructors you can avoid the mess by simply bailing out if global destruction is in effect.

    SYNOPSIS

     package Foo;
     use Devel::GlobalDestruction;

     use namespace::clean; # to avoid having an "in_global_destruction" method

     sub DESTROY {
     return if in_global_destruction;

     do_something_a_little_tricky();
     }



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    global destruction | Perl module | Perl | global | destruction

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM