Re: Use pthread in php extension

From: Date: Wed, 07 Dec 2016 22:29:49 +0000
Subject: Re: Use pthread in php extension
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-97331@lists.php.net to get a copy of this message
Hi! > Of course you can link your extension with any possible library. > Particularly with pthreads, when PHP is compiled non thread safe, you > need to be very careful using the PHP APIs. Many will be not thread > safe in that case. Best strategy were probably not using PHP APIs in > the thread callbacks at all. Besides that, many libraries (e.g. ICU4C) have either non-thread-safe parts (e.g. functions with global state) or special actions need to be performed to use them in thread-safe manner, which PHP will not perform when built in non-ZTS mode. So you need to be careful with third-party libraries too. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#97331) next »