update : 2015.11.03
php.shukuma.com검색:
|
Method Modifierspthreads overrides the functionality of the protected and private method modifiers in order to provide functionality more suited to multi-threaded objects. pthreads applies this functionality to all Threaded objects from creation. Example #1 protected method example: protected methods can only be executed by one Thread at a time.
<?php Example #2 private method example: private methods may only be executed by the Threaded object during execution
<?php |