/[suikacvs]/webroot/swe/lib/SWE/DB/IDLocks.pm
Suika

Contents of /webroot/swe/lib/SWE/DB/IDLocks.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Nov 9 10:06:51 2008 UTC (16 years, 6 months ago) by wakaba
Branch: MAIN
++ swe/lib/SWE/DB/ChangeLog	9 Nov 2008 10:06:43 -0000
	* IDProps.pm (_get_file_name): Return |undef| if the file is not
	found.

	* IDLocks.pm: New module.

2008-11-09  Wakaba  <wakaba@suika.fam.cx>

1 wakaba 1.1 package SWE::DB::IDLocks;
2     use strict;
3    
4     require SWE::DB::IDProps;
5     push our @ISA, 'SWE::DB::IDProps';
6    
7     require SWE::DB::Lock;
8    
9     sub new ($) {
10     my $self = shift->SUPER::new (@_);
11     $self->{leaf_suffix} = '.lock';
12     return $self;
13     } # new
14    
15     sub get_lock ($$) {
16     my $self = shift;
17     my $file_name = $self->_get_file_name ($_[0]);
18    
19     my $lock = SWE::DB::Lock->new;
20     $lock->{file_name} = $file_name;
21    
22     return $lock;
23     } # get_lock
24    
25     1;

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24  
Google Analytics is used in this page; Cookies are used. 忍者AdMax is used in this page; Cookies are used. Privacy policy.