perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Re: Question : threads and locking?
Date Wed, 05 Dec 2001 04:13:14 GMT
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: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message