Re: Write my own extenmsion (UPDATE)
| From: | Andrey Hristov | Date: | Thu, 10 Jul 2008 15:24:55 +0000 |
| Subject: | Re: Write my own extenmsion (UPDATE) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5614@lists.php.net to get a copy of this message | ||
Christian Lange wrote:
the extension is now renamed to thread. Christian Lange schrieb: thread-bin.tar.bz2 has a example.php to demonstrate thread, memory and mutex.shouldn't be detach?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();
Best, Andreyregards Christian L.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();}