當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Thread::__construct方法代碼示例

本文整理匯總了PHP中Thread::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Thread::__construct方法的具體用法?PHP Thread::__construct怎麽用?PHP Thread::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Thread的用法示例。


在下文中一共展示了Thread::__construct方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($sleepTime, $max)
 {
     parent::__construct();
     self::$code++;
     $this->sleepTime = $sleepTime;
     $this->max = $max;
 }
開發者ID:nowelium,項目名稱:php-thread-utils,代碼行數:7,代碼來源:Hoge.class.php

示例2:

 function __construct()
 {
     parent::__construct();
     if (isset($_GET['thread_id']) && is_numeric($_GET['thread_id'])) {
         $this->initialiseThread($_GET['thread_id']);
     }
     $this->url = BASE_URL . DS . '?' . $this->trimURLforEditor();
 }
開發者ID:rootkowski,項目名稱:baseMVC,代碼行數:8,代碼來源:thread.php

示例3: __construct

 /**
  * Constructor
  *
  * @param   remote.server.deploy.scan.DeploymentScanner scanner
  */
 public function __construct($scanner)
 {
     parent::__construct('scanner');
     $this->scanner = $scanner;
     $this->storage = new ShmSegment(0x3c872747);
     if (!$this->storage->isEmpty()) {
         $this->storage->remove();
     }
 }
開發者ID:melogamepay,項目名稱:xp-framework,代碼行數:14,代碼來源:ScannerThread.class.php

示例4: __construct

 public function __construct($delegate, $locked = true)
 {
     parent::__construct();
     $this->delegate = $delegate;
     $mutex = 'MutexImpl';
     if ($locked === false) {
         $mutex = 'NopMutexImpl';
     }
     $this->mutex = new $mutex($this);
 }
開發者ID:nowelium,項目名稱:php-thread-utils,代碼行數:10,代碼來源:DelegateThread.class.php

示例5: array

 function __construct()
 {
     parent::__construct();
     $this->home = 'home';
     $this->page_error = "";
     $this->homeTemplates = array('home' => ['home', 'nonmember']);
     $this->homeScripts = array();
     $this->setHomeTemplates();
     $this->scriptspresent = FALSE;
     $this->setUser();
     $this->search = false;
 }
開發者ID:abhipil,項目名稱:hoods,代碼行數:12,代碼來源:home_model.php

示例6: __construct

 /**
  * Constructor
  *
  */
 public function __construct()
 {
     parent::__construct('server');
 }
開發者ID:melogamepay,項目名稱:xp-framework,代碼行數:8,代碼來源:FtpThread.class.php

示例7: __construct

 public function __construct(S2Dao_Map $map)
 {
     parent::__construct(__CLASS__);
     $this->map = $map;
 }
開發者ID:nowelium,項目名稱:php-thread-utils,代碼行數:5,代碼來源:synchronizedMap.php

示例8: __construct

 public function __construct($resultParts)
 {
     parent::__construct();
     $this->parts = $resultParts;
 }
開發者ID:BackupTheBerlios,項目名稱:ubook-svn,代碼行數:5,代碼來源:ThreadTest.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->page = 'block';
 }
開發者ID:abhipil,項目名稱:hoods,代碼行數:5,代碼來源:block_model.php

示例10: __construct

 /**
  * コンストラクタ
  */
 public function __construct()
 {
     parent::__construct();
     $this->getdat_error_msg_ht = "";
 }
開發者ID:unpush,項目名稱:p2-php,代碼行數:8,代碼來源:ThreadRead.php

示例11: __construct

 public function __construct(Runnable $job, $method)
 {
     parent::__construct();
     $this->synchronus = array($job, $method);
 }
開發者ID:nowelium,項目名稱:php-thread-utils,代碼行數:5,代碼來源:Thread.class.php

示例12: __construct

 public function __construct(HttpUrl $url)
 {
     parent::__construct();
     $this->connection = new HttpConnection($url);
     $this->connection->open(HttpConnection::nonBlocking);
 }
開發者ID:BackupTheBerlios,項目名稱:ubook-svn,代碼行數:6,代碼來源:DownloadThread.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->a = new A();
     $this->b = new B();
 }
開發者ID:nowelium,項目名稱:php-thread-utils,代碼行數:6,代碼來源:Foo.class.php


注:本文中的Thread::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。