[perldocjp-cvs 443] CVS update: docs/modules/threads-shared-1.14/threads

Zurück zum Archiv-Index

argra****@users***** argra****@users*****
2009年 6月 21日 (日) 02:54:47 JST


Index: docs/modules/threads-shared-1.14/threads/shared.pod
diff -u docs/modules/threads-shared-1.14/threads/shared.pod:1.1 docs/modules/threads-shared-1.14/threads/shared.pod:1.2
--- docs/modules/threads-shared-1.14/threads/shared.pod:1.1	Sat Jun 20 16:00:49 2009
+++ docs/modules/threads-shared-1.14/threads/shared.pod	Sun Jun 21 02:54:47 2009
@@ -557,13 +557,14 @@
 
 =end original
 
-It is often not wise to share an object unless the class itself has been
-written to support sharing.  For example, an object's destructor may get
-called multiple times, once for each thread's scope exit.  Another danger is
-that the contents of hash-based objects will be lost due to the above
-mentioned limitation.  See F<examples/class.pl> (in the CPAN distribution of
-this module) for how to create a class that supports object sharing.
-(TBT)
+クラス自身が共有に対応するように書かれていないオブジェクトを共有することは
+たいてい賢明なこととは言えません。
+例えば、各スレッドのスコープから外れる毎に、あるオブジェクトの
+デストラクタが複数回呼び出されるかも知れません。
+もう一つの危険性は、ハッシュベースのオブジェクトの内容が、
+上述した制限のために失われてしまうことです。 
+オブジェクト共有に対応したクラスの作り方については、(このモジュールの
+CPAN 配布に含まれている F<examples/class.pl> を参照してください。
 
 =begin original
 



perldocjp-cvs メーリングリストの案内
Zurück zum Archiv-Index