| ½º·¹µå :: ³ØŸÀÌ ½º·¹µå :: Tie´Â º¯¼ö¸¦ ÀÚ½ÅÀÇ ½º·¹µå¿¡ ¹À» ¼ö ÀÖ½À´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
½º·¹µå :: ³ØŸÀÌ ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Elizabeth Mattijsen
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~elizabeth/
½º·¹µå :: ³ØŸÀÌ Å±×
½º·¹µå :: ³ØŸÀÌ ¼³¸í
½º·¹µå :: Tie´Â º¯¼ö¸¦ ÀÚ½ÅÀÇ ½º·¹µå¿¡ ¹À» ¼ö ÀÖ½À´Ï´Ù. Thread :: Tie´Â º¯¼ö¸¦ ÀÚ½ÅÀÇ ½º·¹µå¿¡ ¹À» ¼ö ÀÖ½À´Ï´Ù. Synopsis »ç¿ë ½º·¹µå :: Tie; # ÃÖ´ëÇÑ ÃÖ´ë ¸Þ¸ð¸® Àý¾àÀ» À§ÇØ °¡´ÉÇÑ ÇÑ »¡¸® »ç¿ë # ±âº» ½º·¹µå + Tieing + ÇÊ¿äÇÒ ¶§ ½º·¹µå¸¦ ¸¸µì´Ï´Ù. $ scalar, 'the'tite '. ³ØŸÀÌ @array, 'thread :: tie'; ³ØŸÀÌ % ÇؽÃ, 'thread :: tie'; ³ØŸÀÌ * ÇÚµé, '½º·¹µå :: ³ØŸÀÌ'; # ´ëü ±¸Çö ³ØŸÀÌ $ scalar, 'thread :: tie', {module => moory :: tie :: difustration ', # ÀÚµ¿À¸·Î »ç¿ëµË´Ï´Ù =>'»ç¿ë ::ÀÌ :: ¸ðµâ :: ¶ÇÇÑ, # ¼±Åà »çÇ× ¶ÇÇÑ [] eval => 'ÀÓÀÇ perl ÄÚµå', ¼±ÅÃ}; # ¿À¸¥ÂÊ¿¡ ¹¿© $ Scalar, 'thread :: tie', {}, 10; ³ØŸÀÌ @array, 'thread :: tie', {}, qw (a b c); ³ØŸÀÌ % ÇؽÃ, 'thread :: tie', {}, (a => 'a', b => 'b', c => 'c'); ³ØŸÀÌ * ÇÚµé, 'thread :: tie', {}, '> : layer', 'filename'; # ´ëü ½º·¹µå¸¦ ¸¸µé°í My $ tiethRead = ½º·¹µå :: Tie :: thread-> new; ³ØŸÀÌ $ Scalar, 'thread :: tie', {thread => $ tiethread}; # °´Ã¼ ¸Þ¼Òµå My $ Tied = Tie STUMP, 'Thread :: Tie', ¸Å°³ º¯¼ö; ³» $ ¹¿© = ¹¿©ÀÖ´Â (¹°°Ç); ³» $ semaphore = $ tied-> ¼¼¸¶Æ÷¾î; # scalar for lock () ¹ÀÎ º¯¼ö my $ module = $ tied-> ¸ðµâ; # ¸ðµâÀº ½º·¹µå¿¡¼ ³» $ tiethRead = $ tied-> ½º·¹µå; # °¡º¯ÀÌ ¹ÀÎ # three = $ tieth-> tid; # ¹ÀÎ ½º·¹µåÀÇ ½º·¹µå ID°¡ My $ thread = $ tiethRead-> ½º·¹µå; # ½ÇÁ¦ "½º·¹µå"½º·¹µå (¹°°Ç); # È£ÃâÀº ½º·¹µå¿¡¼ Æı«µÇ¸ç öÀúÈ÷ ½º·¹µå :: TIE-> Á¾·á; # ±âº» ó¸® ½º·¹µå $ TIETHREAD-> Á¾·á; # ƯÁ¤ threadRequirements Á¾·á : ¡¤ perl.
½º·¹µå :: ³ØŸÀÌ °ü·Ã ¼ÒÇÁÆ®¿þ¾î