[PHP-DEV] ts_free_thread() frees only temporary in multiple parallel threads

2010-12-03 Thread Gary Zipfel
I created my own php sapi 1 year ago and it was only single threaded. Now I tried to make it multi-threaded by using TSRM. I got 1 thread starting up and shutting down the TSRM and my module and many other threads executing requests. You can take a look at this abstract example here: DWORD WINAPI

[PHP-DEV] ts_free_thread() frees only temporary in multiple parallel threads

2010-11-30 Thread 128bitencrypted at gmail dot com
OS:Windows (XP and 7 tested) PHP: 5.2.9 and 5.3.3 I created my own php sapi 1 year ago and it was only single threaded. Now I tried to make it multi-threaded by using TSRM. I got 1 thread starting up and shutting down the TSRM and my module and many other threads executing requests. You