Add pthreads stubs for addRef/delRef/getRefCount functions for Threaded class
This commit is contained in:
parent
4e60375501
commit
fdfdcd1e1b
|
@ -177,6 +177,13 @@ class Threaded implements Collectable, Traversable, Countable, ArrayAccess {
|
||||||
*/
|
*/
|
||||||
protected $worker;
|
protected $worker;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (PECL pthreads >= 3.0.0)<br/>
|
||||||
|
* Increments the internal number of references to a Threaded object
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function addRef() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (PECL pthreads >= 2.0.0)<br/>
|
* (PECL pthreads >= 2.0.0)<br/>
|
||||||
* Fetches a chunk of the objects property table of the given size,
|
* 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() {}
|
public function count() {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (PECL pthreads >= 3.0.0)<br/>
|
||||||
|
* Decrements the internal number of references to a Threaded object
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function delRef() {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* (PECL pthreads >= 2.0.8)<br/>
|
* (PECL pthreads >= 2.0.8)<br/>
|
||||||
* Makes thread safe standard class at runtime
|
* Makes thread safe standard class at runtime
|
||||||
|
@ -205,6 +219,13 @@ class Threaded implements Collectable, Traversable, Countable, ArrayAccess {
|
||||||
*/
|
*/
|
||||||
public static function extend( $class ) {}
|
public static function extend( $class ) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (PECL pthreads >= 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 < 3.0.0)<br/>
|
* (PECL pthreads < 3.0.0)<br/>
|
||||||
* Retrieves terminal error information from the referenced object
|
* Retrieves terminal error information from the referenced object
|
||||||
|
|
Loading…
Reference in New Issue