Changeset 9762 for trunk/Padre/lib/Padre/Lock.pm
- Timestamp:
- 12/17/09 20:11:36 (2 years ago)
- File:
-
- 1 edited
-
trunk/Padre/lib/Padre/Lock.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Padre/lib/Padre/Lock.pm
r9685 r9762 9 9 sub new { 10 10 my $class = shift; 11 my $self = bless {@_}, $class;11 my $self = bless { @_ }, $class; 12 12 13 13 # Enable the locks 14 if ( $self->{ update} ) {14 if ( $self->{UPDATE} ) { 15 15 $self->{locker}->update_enable; 16 16 } 17 if ( $self->{ busy} ) {17 if ( $self->{BUSY} ) { 18 18 $self->{locker}->busy_enable; 19 19 } … … 22 22 } 23 23 24 # Disable locking on destruction 24 25 sub DESTROY { 25 26 # Disable the locks 27 if ( $_[0]->{update} ) { 26 if ( $_[0]->{UPDATE} ) { 28 27 $_[0]->{locker}->update_disable; 29 28 } 30 if ( $_[0]->{ busy} ) {29 if ( $_[0]->{BUSY} ) { 31 30 $_[0]->{locker}->busy_disable; 32 31 }
Note: See TracChangeset
for help on using the changeset viewer.
