Re: Write my own extenmsion (UPDATE)
| From: | Christian Lange | Date: | Thu, 10 Jul 2008 09:32:27 +0000 |
| Subject: | Re: Write my own extenmsion (UPDATE) | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5613@lists.php.net to get a copy of this message | ||
the extension is now renamed to thread.
Christian Lange schrieb:
thread-bin.tar.bz2 has a example.php to demonstrate thread, memory and mutex.
> Only tested win32!
> http://www.b0red.de/clthread/thread-bin.tar.bz2
> http://www.b0red.de/clthread/thread-src.tar.bz2
>
> to create threads:
> class thread {
> __construct();
> deattach();
> eval(); // Execute php code in a thread.
> isdoing(); // Thread is running and execute php code.
> die();
> exit();
> };
>
> to exchange data between threads:
> class memory {}
>
> mutex class:
> class mutex {
> __construct(String Name);
> lock();
> unlock();
> }
>
regards Christian L.