[perldocjp-cvs 460] CVS update: docs/modules/threads-1.67

Back to archive index

argra****@users***** argra****@users*****
2009年 7月 19日 (日) 03:18:08 JST


Index: docs/modules/threads-1.67/threads.pod
diff -u docs/modules/threads-1.67/threads.pod:1.2 docs/modules/threads-1.67/threads.pod:1.3
--- docs/modules/threads-1.67/threads.pod:1.2	Sun Jun 21 02:54:47 2009
+++ docs/modules/threads-1.67/threads.pod	Sun Jul 19 03:18:08 2009
@@ -603,10 +603,10 @@
 
 =end original
 
-If needed, a thread can be exited at any time by calling
-C<threads-E<gt>exit()>.  This will cause the thread to return C<undef> in a
-scalar context, or the empty list in a list context.
-(TBT)
+もし必要なら、スレッドはいつでも C<threads-E<gt>exit()> を
+呼び出すことで終了させることが出来ます。
+これにより、スレッドはスカラコンテキストでは C<undef> を返し、
+リストコンテキストでは空リストを返します。
 
 =begin original
 
@@ -614,8 +614,7 @@
 
 =end original
 
-When called from the I<main> thread, this behaves the same as C<exit(0)>.
-(TBT)
+I<main> スレッドから呼び出されると、C<exit(0)> と同様に振る舞います。
 
 =item threads->exit(status)
 
@@ -626,9 +625,8 @@
 
 =end original
 
-When called from a thread, this behaves like C<threads-E<gt>exit()> (i.e., the
-exit status code is ignored).
-(TBT)
+スレッドから呼び出されると、C<threads-E<gt>exit()> と同様に振る舞います
+(つまり、status 終了コードは無視されます)。
 
 =begin original
 
@@ -636,8 +634,7 @@
 
 =end original
 
-When called from the I<main> thread, this behaves the same as C<exit(status)>.
-(TBT)
+I<main> スレッドから呼び出されると、C<exit(status)> と同様に振る舞います。
 
 =item die()
 
@@ -650,11 +647,10 @@
 
 =end original
 
-Calling C<die()> in a thread indicates an abnormal exit for the thread.  Any
-C<$SIG{__DIE__}> handler in the thread will be called first, and then the
-thread will exit with a warning message that will contain any arguments passed
-in the C<die()> call.
-(TBT)
+スレッドでの C<die()> の呼び出しは、スレッドの異常終了を意味します。
+まずスレッドでの C<$SIG{__DIE__}> ハンドラが呼び出され、
+それからスレッドは C<die()> 呼び出しに渡された引数による警告メッセージと
+共に終了します。
 
 =item exit(status)
 
@@ -679,8 +675,7 @@
 
 =end original
 
-If C<exit()> really is needed, then consider using the following:
-(TBT)
+もし本当に C<exit()> が必要なら、以下を使うことを考えてください:
 
     threads->exit() if threads->can('exit');   # Thread friendly
     exit(status);
@@ -794,9 +789,7 @@
 
 =end original
 
-The following boolean methods are useful in determining the I<state> of a
-thread.
-(TBT)
+以下の真偽値メソッドはスレッドの I<状態> を決定するのに便利です。
 
 =over
 
@@ -809,9 +802,8 @@
 
 =end original
 
-Returns true if a thread is still running (i.e., if its entry point function
-has not yet finished or exited).
-(TBT)
+スレッドがまだ実行されている(つまり、そのエントリポイント関数がまだ完了または
+終了していない)なら真を返します。
 
 =item $thr->is_joinable()
 
@@ -823,10 +815,9 @@
 
 =end original
 
-Returns true if the thread has finished running, is not detached and has not
-yet been joined.  In other words, the thread is ready to be joined, and a call
-to C<$thr-E<gt>join()> will not I<block>.
-(TBT)
+スレッドが実行を完了していて、detach も join もされていないなら真を返します。
+言い換えると、このスレッドは join する準備が出来ていて、
+C<$thr-E<gt>join()> の呼び出しは I<ブロック> されません。
 
 =item $thr->is_detached()
 
@@ -836,8 +827,7 @@
 
 =end original
 
-Returns true if the thread has been detached.
-(TBT)
+スレッドが detach されたなら真を返します。
 
 =item threads->is_detached()
 
@@ -847,8 +837,8 @@
 
 =end original
 
-Class method that allows a thread to determine whether or not it is detached.
-(TBT)
+スレッドが detach されているかどうかを決定できるようにするための
+クラスメソッド。
 
 =back
 



perldocjp-cvs メーリングリストの案内
Back to archive index