call_user_function in multithread env.

php.internals

Vadka

21 years ago
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

21 years ago
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>