httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: apreq-2 layout
Date Thu, 16 Jan 2003 04:59:01 GMT
Joe Schaefer wrote:
> Stas Bekman <stas@stason.org> 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
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Mime
View raw message