On 2003/12/04, at 2:06, Uwe Schindler wrote:


This evening I will try to put a mutex at the beginning of get_browser to prevent more threads running at the same time there. But as I see this, this zend_hash_apply function is used very often could there be other effects if a global variable is a hashtable?

Only one question: Is there a special PHP way to use mutexes? I am not familar in Zend programming (I do only SAPI...)

Did you take a look at zend_ts_hash (only in php5) and tsrm_mutex_*() ?


I'm not quite sure if the facility is enough tested and
really thread-safe though.

Moriyoshi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to