SDF :: Lock :: Selective.

SDF :: LOCK :: Selective 'Selective'LockingÀ» »ç¿ëÇÏ¿© ÆÄÀÏ ¶Ç´Â ÆÄÀÏ ÇÚµéÀ» Àá ±×°Å³ª Àá±Ý ÇØÁ¦ ÇÒ ¼ö ÀÖ½À´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

SDF :: Lock :: Selective. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Chris Cobb
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~ccobb/PTools-0.02/lib/PTools/Date/Format.pm

SDF :: Lock :: Selective. ű×


SDF :: Lock :: Selective. ¼³¸í

SDF :: LOCK :: Selective 'Selective'LockingÀ» »ç¿ëÇÏ¿© ÆÄÀÏ ¶Ç´Â ÆÄÀÏ ÇÚµéÀ» Àá ±×°Å³ª Àá±Ý ÇØÁ¦ ÇÒ ¼ö ÀÖ½À´Ï´Ù. SDF :: Lock :: Selective´Â '¼±ÅÃÀû'Àá±ÝÀ» »ç¿ëÇÏ¿© ÆÄÀÏ ¶Ç´Â ÆÄÀÏ ÇÚµéÀ» Àá±Û ¼ö ÀÖ½À´Ï´Ù. ÆÄÀÏ À̸§À̳ª ÆÄÀÏ Æнº¿¡ ´ëÇÑ Àá±ÝÀ» »ç¿ëÇÏ¿© Ptools :: SDF :: Lock :: Selective; $ lockobj = new ptools :: sdf :: lock :: ¼±ÅÃÀû; ($ STAT, $ ERR) = $ LOCKOBJ-> LOCK ($ FILENAME); ¶Ç´Â $ lockobj-> lock ($ filename, $ maxRetries, $ leeptime, $ lockmode, $ openmode); ($ STAT, $ ERR) = $ LOCKOBJ-> »óÅÂ; ($ stat, $ err) = $ lockobj-> Àá±Ý ÇØÁ¦; 'Àá±Ý'¸Þ¼Òµå¸¦ È£ÃâÇϱâ Àü¿¡ '$ filename'ÀÌ Á¸ÀçÇÏÁö ¾ÊÁö¸¸ '$ openmode'º¯¼ö¿¡ ´ëÇÑ Succeeds.Default°¡ 0644 ÀÎ °æ¿ì¿¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù. ¶Ç´Â '-RW-R-R-') ¸í½ÃÀûÀÎ Àá±Ý ÇØÁ¦°¡ ºÒÇÊ¿äÇÕ´Ï´Ù. '$ LOCKOBJ'º¯¼ö°¡ ¹üÀ§¸¦ ¹þ¾î³ª°Å³ª ½ºÅ©¸³Æ®, undefine µîÀ» Á¾·á ÇÒ ¼ö ÀÖµµ·Ï open ÆÄÀÏ ÇÚµé »ç¿ë fcntlÀ» »ç¿ëÇÏ¿© Lock.obtain Àá±ÝÀ» ÇØÁ¦ ÇÒ ¼ö ÀÖ½À´Ï´Ù. Ptools :: SDF :: Lock :: Selective; $ lockobj = new ptools :: sdf :: lock :: ¼±ÅÃÀû; ·ÎÄà (* FH); sysopen (fh, "/ ÀϺΠ/ ÆÄÀÏ", o_rdwr | o_creat, 0644) || ´ÙÀÌ $!; $ fh = * fh; ($ STAT, $ ERR) = $ LOCKOBJ-> LOCK ($ FH); ¶Ç´Â ($ STAT, $ ERR) = $ LOCKOBJ-> LOCK ($ FH, $ maxRETRIES, $ ÄèÀûÇÔ, $ LOCKMODE); 'status'¹× 'Unlock'¸Þ¼Òµå´Â À§¿Í µ¿ÀÏÇϸç '$ OpenMode'¸Å°³ º¯¼ö ¿©±â¼­´Â ºÐ¸íÈ÷ ÇÊ¿äÇÏÁö ¾Ê½À´Ï´Ù. 'sdf :: 'Ŭ·¡½ºÀÇ ÀνºÅϽº¿¡ Àá±Ý ÀåÄ¡¸¦ »ç¿ëÇÏ¿© PTOOLS :: SDF :: INI; # ¶Ç´Â ptools :: sdf :: sdf ¶Ç´Â ptools :: sdf :: tag $ iniobj = new ptools :: sdf :: ini ($ filename); $ iniobj-> È®Àå (, "PTOOLS :: SDF :: LOCK :: SERECALISITION"); ($ STAT, $ ERR) = $ INIOBJ-> Àá±Ý ($ maxRETRIES, $ ÄèÀûÇÔ, $ LOCKMODE); '»óÅÂ'¿Í 'Àá±Ý ÇØÁ¦'¹æ¹ýÀº À§¿Í °°½À´Ï´Ù. Áß°ýÈ£ ()°¡ À§ÀÇ ¿¹¿¡¼­´Â ¹è¿­ ÂüÁ¶¸¦ ¼­ºê ·çƾÀ¸·Î Àü´ÞÇÏ´Â µ¥ »ç¿ëµÇ´Â Litersl ±¸¹®À» º¸¿©ÁÝ´Ï´Ù. ¼±ÅÃÀû ¸Å°³ º¯¼ö¸¦ ¾Ï½ÃÇϱâ À§ÇØ ¿©±â¿¡ »ç¿ëµÇÁö ¾Ê½À´Ï´Ù. ¼±ÅÃÀûÀ¸·Î : $ ArrayRef = ; $ iniobj-> È®Àå ($ arrayref, "ptools :: sdf :: lock :: selective"); 'sdf :: 'classthe lock ¹× Àá±Ý ÇØÁ¦ ¹æ¹ýÀº Ã߻󿡼­ È®Àå °¡´ÉÇÑ ¸Þ¼Òµå·Î ±¸ÇöµË´Ï´Ù. ±âº» Ŭ·¡½º. ÀÌ ¸ÞÄ¿´ÏÁòÀÇ Åä·Ð ¹× ¿¹Á¦´Â PTOOLS :: SDF :: FILE ¶Ç´Â EPTOOLS :: XTENDER¸¦ ÂüÁ¶ÇϽʽÿÀ. ¿ä±¸ »çÇ× : ¡¤ Perl.


SDF :: Lock :: Selective. °ü·Ã ¼ÒÇÁÆ®¿þ¾î