Re: Write my own extenmsion
| From: | Christian Lange | Date: | Wed, 09 Jul 2008 20:29:27 +0000 |
| Subject: | Re: Write my own extenmsion | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5612@lists.php.net to get a copy of this message | ||
Lars Strojny schrieb:
> Hi Christian,
>
> Am Freitag, den 20.06.2008, 16:16 +0200 schrieb Christian Lange:
> [...]
>
>> No Sorry. But when you define this class in both scops, you can exchange
>> objects wiht clmemory.
>>
>
> Alright, no problem, was just curious to know how it works. What about
> superglobals like _GET, _POST etc. pp.?
> [...]
>
>> my name ;)
>>
>
> Ah, alright. Would you mind changing the name and remove the prefix?
> [...]
>
>> I think a mutex class is usefull, to lock/unlock action beetween threads,
>> but the message system can be implement by the user.
>>
>
> Good point (about the message system). Would you like to add a
> Mutex-class?
>
> cu, Lars
>
Here are src + bin:
Only tested win32!
http://www.b0red.de/clthread/clthread-win32-bin.rar
http://www.b0red.de/clthread/clthread-win32-src.rar
to create threads:
class clthread {
__construct();
deattach();
eval();
isdoing();
die();
exit();
};
to exchange data between threads:
class clmemory {}
mutex class:
class mutex {
__construct(String Name);
lock();
unlock();
}
regards Christian L.