Add pthreads stubs for addRef/delRef/getRefCount functions for Threaded class

This commit is contained in:
BradG 2018-11-01 05:42:49 -05:00
parent 4e60375501
commit fdfdcd1e1b
No known key found for this signature in database
GPG Key ID: 72A6843EA7F5CF2B
1 changed files with 21 additions and 0 deletions

View File

@ -177,6 +177,13 @@ class Threaded implements Collectable, Traversable, Countable, ArrayAccess {
*/
protected $worker;
/**
* (PECL pthreads &gt;= 3.0.0)<br/>
* Increments the internal number of references to a Threaded object
* @return void
*/
public function addRef() {}
/**
* (PECL pthreads &gt;= 2.0.0)<br/>
* Fetches a chunk of the objects property table of the given size,
@ -196,6 +203,13 @@ class Threaded implements Collectable, Traversable, Countable, ArrayAccess {
*/
public function count() {}
/**
* (PECL pthreads &gt;= 3.0.0)<br/>
* Decrements the internal number of references to a Threaded object
* @return void
*/
public function delRef() {}
/**
* (PECL pthreads &gt;= 2.0.8)<br/>
* Makes thread safe standard class at runtime
@ -205,6 +219,13 @@ class Threaded implements Collectable, Traversable, Countable, ArrayAccess {
*/
public static function extend( $class ) {}
/**
* (PECL pthreads &gt;= 3.0.0)<br/>
* Retrieves the internal number of references to a Threaded object
* @return int <p>The number of references to the Threaded object</p>
*/
public function getRefCount() {}
/**
* (PECL pthreads &lt; 3.0.0)<br/>
* Retrieves terminal error information from the referenced object