pht icon indicating copy to clipboard operation
pht copied to clipboard

A new threading extension for PHP

Results 6 pht issues
Sort by recently updated
recently updated
newest added

数据不应该被序列化。被序列化会影响性能,很大的影响实用性。当线程之间需要共享小数据可以使用redis等,不需要这个。当线程之间需要共享大型的数据(比如占用内存1Gb的数组),就需要共享的时候不序列化,能直接共享

Hi! Quick question. Is there a notion that this will be built for 7.3 at all? There are some nice paradigms here and it would be _interesting_ to have this...

For large scale use and production readiness however, it really wants plexing. You sort of achieve that with the mutxes, but only within a limited scope. If I want to...

The README states "cyclic references will leak" in the [data structure](https://github.com/tpunt/pht/blob/master/README.md#inter-thread-communication-data-structures) section. Can you detail this further?

`$thread_col[$index]= new Thread(); $thread_col[$index]->addFunctionTask(function($url){print_r($url);},$primaryUrl); $thread_col[$index]->start();` after invoke the start() method, but the task closure function no run.