svn: /phpdoc/ja/trunk/reference/pthreads/ modifiers.xml

From: Date: Fri, 28 Apr 2017 23:40:51 +0000
Subject: svn: /phpdoc/ja/trunk/reference/pthreads/ modifiers.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-4688@lists.php.net to get a copy of this message
satoruyoshida Fri, 28 Apr 2017 23:40:51 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=342435 Log: I think this document has low priority. Changed paths: D phpdoc/ja/trunk/reference/pthreads/modifiers.xml Deleted: phpdoc/ja/trunk/reference/pthreads/modifiers.xml =================================================================== --- phpdoc/ja/trunk/reference/pthreads/modifiers.xml 2017-04-28 18:34:37 UTC (rev 342434) +++ phpdoc/ja/trunk/reference/pthreads/modifiers.xml 2017-04-28 23:40:51 UTC (rev 342435) @@ -1,87 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Revision$ --> -<!-- EN-Revision: 332986 Maintainer: takagi Status: ready --> - -<chapter xml:id="pthreads.modifiers" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> - <title>Method Modifiers</title> - <titleabbrev>Modifiers</titleabbrev> - <para> - pthreads は、メソッドのアクセス修飾子 protected および private の機能を上書きし、 - マルチスレッド環境のオブジェクトにより適した機能を追加します。 - pthreads は、すべての Threaded オブジェクトの作成時にこの機能追加を行います。 - </para> - <example> - <title>protected メソッドの例。protected メソッドは、同時に複数のスレッドから実行できないようにする</title> - <programlisting role="php"> -<![CDATA[ -<?php -class ExampleThread extends Thread { - public function run() { - /* thread code */ - if ($this->synchronized()) { - - } - } - - protected function exclusive() { - /* synchronized method */ - } -} - -$thread = new ExampleThread(); -if ($thread->start()) { - $thread->exclusive(); -} -?> -]]> - </programlisting> - </example> - <example> - <title>private メソッドの例。private メソッドは、その Threaded オブジェクトの実行中にしか実行されないようにする</title> - <programlisting role="php"> -<![CDATA[ -<?php -class ExampleThread extends Thread { - public function run() { - /* thread code */ - if ($this->insideonly()) { - - } - } - - private function insideonly() { - /* private method */ - } -} - -$thread = new ExampleThread(); -if ($thread->start()) { - $thread->insideonly(); -} -?> -]]> - </programlisting> - </example> -</chapter> - -<!-- Keep this comment at the end of the file -Local variables: -mode: sgml -sgml-omittag:t -sgml-shorttag:t -sgml-minimize-attributes:nil -sgml-always-quote-attributes:t -sgml-indent-step:1 -sgml-indent-data:t -indent-tabs-mode:nil -sgml-parent-document:nil -sgml-default-dtd-file:"~/.phpdoc/manual.ced" -sgml-exposed-tags:nil -sgml-local-catalogs:nil -sgml-local-ecat-files:nil -End: -vim600: syn=xml fen fdm=syntax fdl=2 si -vim: et tw=78 syn=sgml -vi: ts=1 sw=1 ---> -

« previous php.doc.ja (#4688) next »