Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15221 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64879 invoked by uid 1010); 28 Feb 2005 00:39:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 64863 invoked from network); 28 Feb 2005 00:39:53 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 28 Feb 2005 00:39:53 -0000 X-Host-Fingerprint: 202.81.246.113 246-113.netfront.net Received: from ([202.81.246.113:52285] helo=newweb.akbkhome.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id EF/27-43672-65862224 for ; Sun, 27 Feb 2005 19:39:52 -0500 Received: from [192.168.0.40] (helo=oxfam.localhost ident=alan) by newweb.akbkhome.com with esmtp (Exim 4.44) id 1D5Z1c-00083f-2P; Mon, 28 Feb 2005 08:44:40 +0800 To: Vadka Cc: internals@lists.php.net In-Reply-To: References: Content-Type: text/plain Date: Mon, 28 Feb 2005 08:42:08 +0800 Message-ID: <1109551328.12557.28.camel@alan> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Content-Transfer-Encoding: 7bit X-ACL-Warn: "cleared badlog" Subject: Re: [PHP-DEV] call_user_function in multithread env. From: alan@akbkhome.com (Alan Knowles) have a look at the mailing list archives / cvs.php.net/pecl/threads, it's not as simple as just calling pthread_create.. I've done some hacks to php_embed, so you can create threaded servers, (threads not started from php) but dont expect to pass data between threads, without some problems.. Regards Alan On Sun, 2005-02-27 at 20:00 +0300, Vadka wrote: > Hi! > Is it possible to call_user_function in multithreaded environment? > (for now, it brings the line "Killed" when executing such a code; Linux) > So, I like: > > func(){ > .... > call_user_function(); > } > ...... > > PHP_FUNCTION(oops){ > ..... > pthread_create(...func...); > } > -- Alan Knowles