| ÆÄÀÏ :: NFSLOCK. FILE :: NFSLOCK´Â NFS (¶Ç´Â NOT)¸¦ Àá±×´Â PERL ¸ðµâÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
ÆÄÀÏ :: NFSLOCK. ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Paul T Seamons
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~bbb/File-NFSLock-1.20/lib/File/NFSLock.pm
ÆÄÀÏ :: NFSLOCK. ű×
ÆÄÀÏ :: NFSLOCK. ¼³¸í
ÆÄÀÏ :: NFSLockÀº NFS (¶Ç´Â NOT)¸¦ Àá±×´Â PERL ¸ðµâÀÔ´Ï´Ù. ÆÄÀÏ :: NFSLockÀº NFS (¶Ç´Â NOT)¸¦ ÇÒ ¼öÀÖ´Â PERL ¸ðµâÀÔ´Ï´Ù. Synopsis ÆÄÀÏ :: NFSLock QW (À¯½Å »èÁ¦); FCNTL QW (LOCK_EX LOCK_NB)¸¦ »ç¿ëÇϽʽÿÀ. ³» $ file = "somefile"; ### Àá±Ý ¼³Á¤ - °´Ã¼°¡ ¹üÀ§¸¦ ÀÒÀ» ¶§±îÁö Áö¼ÓµÇ¸é (³» $ lock = new file :: nfslock {file => $ file, lock_type => lock_ex | lock_nb, blocking_timeout => # 10 sec stale_lock_timeout => 30 ÃÊ) * 60, # 30 ºÐ}) {### ¶Ç´Â ### MY $ LOCK = ÆÄÀÏ :: NFSLOCK-> NEW ($ FILE, LOCK_EX | LOCK_NB, 10,30 * 60); ### $ FILE¿¡ Protected ProtectionÀ» ÀÛ¼ºÇϽʽÿÀ. ###ÀÌ ½ÃÁ¡¿¡¼ $ FILEÀº NFS (°¡Àå ÃÖ±Ù) OPEN (ÆÄÀÏ, "+)¿¡¼ ¿¬°áµÇÁö ¾Ê½À´Ï´Ù.
ÆÄÀÏ :: NFSLOCK. °ü·Ã ¼ÒÇÁÆ®¿þ¾î