当前位置: 首页>>代码示例>>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;未经允许,请勿转载。