httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: apreq-2 layout
Date Thu, 16 Jan 2003 04:59:01 GMT
Joe Schaefer wrote:
> Stas Bekman <> writes:
> [...]
>>>    extern struct apreq_env APReq;
>>Careful with globals. We are potentially running in a threaded env in 2.0. 
>>I'd rather see a compile time resolving.
> The global struct should only get populated once, at process startup, 
> and then remain unchanged (the attributes are all function pointers).
> Threading shouldn't be a problem here, should it?

what happens if two threads both startup at the same time?

Also will this work with two sub-system using it in the same process, 
where each assigns a different value to it? Why not using an accessor 
method to retrieve a copy of the struct?

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

View raw message