Ignore:
Timestamp:
12/17/09 20:11:36 (2 years ago)
Author:
adamk
Message:

Landing new lock subsystem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Padre/lib/Padre/Lock.pm

    r9685 r9762  
    99sub new { 
    1010    my $class = shift; 
    11     my $self = bless {@_}, $class; 
     11    my $self  = bless { @_ }, $class; 
    1212 
    1313    # Enable the locks 
    14     if ( $self->{update} ) { 
     14    if ( $self->{UPDATE} ) { 
    1515        $self->{locker}->update_enable; 
    1616    } 
    17     if ( $self->{busy} ) { 
     17    if ( $self->{BUSY} ) { 
    1818        $self->{locker}->busy_enable; 
    1919    } 
     
    2222} 
    2323 
     24# Disable locking on destruction 
    2425sub DESTROY { 
    25  
    26     # Disable the locks 
    27     if ( $_[0]->{update} ) { 
     26    if ( $_[0]->{UPDATE} ) { 
    2827        $_[0]->{locker}->update_disable; 
    2928    } 
    30     if ( $_[0]->{busy} ) { 
     29    if ( $_[0]->{BUSY} ) { 
    3130        $_[0]->{locker}->busy_disable; 
    3231    } 
Note: See TracChangeset for help on using the changeset viewer.