SG() is a macro that wraps around TSRM, the Thread Safe Resource Manager. If the SAPI is build with ZTS (Zend Thread Safety) it is protected automatically.
Derick On Wed, 10 Apr 2002, Aaron Bannert wrote: > I'm working with the apache2filter against Apache 2.0.35 and I want to > figure out how to ensure thread safety. It seems to me that much of the > request data is set up in the SG(request_info), which appears to be a > global variable. Please correct me if I'm wrong (I'm hoping I'm wrong > here and it's threadsafe already :). > > OTOH, I see that the nsapi.c implementation isn't using any > obvious mutexes, but it is using the SG(request_info) in the same > way. What am I missing? > > -aaron > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > ----------------------------------------------------------------------- Did I help you? Consider a gift: http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B ----------------------------------------------------------------------- PHP: Scripting the Web - [EMAIL PROTECTED] All your branches are belong to me! SRM: Script Running Machine - www.vl-srm.net ----------------------------------------------------------------------- -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php