Re: call_user_function in multithread env.

From: Date: Mon, 28 Feb 2005 00:42:08 +0000
Subject: Re: call_user_function in multithread env.
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-15221@lists.php.net to get a copy of this message
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 <alan@akbkhome.com>

« previous php.internals (#15221) next »