Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15242 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61262 invoked by uid 1010); 1 Mar 2005 17:35:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60755 invoked from network); 1 Mar 2005 17:34:55 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 1 Mar 2005 17:34:55 -0000 X-Host-Fingerprint: 213.131.2.2 nsrd.sinp.msu.ru Linux 2.4/2.6 Received: from ([213.131.2.2:3452] helo=nsrd.sinp.msu.ru) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id 49/63-43857-C77A4224 for ; Tue, 01 Mar 2005 12:33:49 -0500 Received: from vvs_php (helo=localhost) by nsrd.sinp.msu.ru with local-esmtp (Exim 4.30) id 1D6BZc-0001Em-TF for internals@lists.php.net; Tue, 01 Mar 2005 20:54:20 +0300 Date: Tue, 1 Mar 2005 20:54:20 +0300 (MSK) To: internals@lists.php.net In-Reply-To: <4223DD44.8030406@akbkhome.com> Message-ID: References: <2005022807371112877%drbob@TheManFromSPUDcom> <42233717.9050107@akbkhome.com> <729eaf208f6ab01379951b88d8f90b76@gmail.com> <4223DD44.8030406@akbkhome.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] How to embed PHP5 into multi-threaded C app? From: vvs_php@nsrd.sinp.msu.ru (Vadka) On Tue, 1 Mar 2005, Alan Knowles wrote: > I think derick does something like this in SRM, > but basically if you want to load something in the global thread, and let > the children inherit the data / classes /function etc. > AFAIR you need to serialize the opcodes, and copy them for each thread. (or > use something like bcompiler to load cached opcodes for you..) For me, inter-threads variables api is working (separated table, holding references between threads; must be synched by mutexes). it will take some time to make that available...