On Thu, 29 Nov 2001, Philippe M. Chiasson wrote: > Looking thru the todo/api.txt file, I noticed a few items that > are stuck in read-only mode, because thread locking is needed if > changing them. > > I already have something in the works, but my question is that under > a non-threaded model, like prefork, all that is uesless, right? So, > what's the nice way for me to go on and write thread mutex stuff > that will only happen when running under threads ?
you can decide at compile time if mutexes are supported (like your patch does). as for running in a threaded mpm, you'd have to decide at runtime. modperl sets up a the scfg->threaded_mpm variable for that. there is also a modperl_global_threaded_mpm_get() function. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
