Under threaded mpm, is it safe to use a static variable which is set
once at the bootstrap time and then is used only to read from.
If it is, do I have to use the special threads function
apr_thread_once_init to make sure that the initialization is run only once?
e.g in Apache__Scoreboard.h:
static char status_flags[SERVER_NUM_STATUS];
static void status_flags_init(void)
{
status_flags[SERVER_DEAD] = '.';
status_flags[SERVER_READY] = '_';
...
status_flags[SERVER_IDLE_KILL] = 'I';
}
static void mpxs_Apache__Scoreboard_BOOT(pTHX)
{
status_flags_init();
...
}
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]