Share $iniObj between threads
This commit is contained in:
parent
652468a290
commit
571fa3fd46
|
@ -24,6 +24,13 @@ our $VERSION = 0.70;
|
||||||
our $msg;
|
our $msg;
|
||||||
our $iniObj;
|
our $iniObj;
|
||||||
|
|
||||||
|
BEGIN {
|
||||||
|
eval {
|
||||||
|
require threads::shared;
|
||||||
|
threads::shared::share($iniObj);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
## @cmethod Lemonldap::NG::Common::Conf new(hashRef arg)
|
## @cmethod Lemonldap::NG::Common::Conf new(hashRef arg)
|
||||||
# Constructor.
|
# Constructor.
|
||||||
# Succeed if it has found a way to access to Lemonldap::NG configuration with
|
# Succeed if it has found a way to access to Lemonldap::NG configuration with
|
||||||
|
@ -187,7 +194,7 @@ sub getLocalConf {
|
||||||
my $r = {};
|
my $r = {};
|
||||||
|
|
||||||
$section ||= DEFAULTSECTION;
|
$section ||= DEFAULTSECTION;
|
||||||
$file ||= $self->{confFile} || DEFAULTCONFFILE;
|
$file ||= $self->{confFile} || DEFAULTCONFFILE;
|
||||||
$loaddefault = 1 unless ( defined $loaddefault );
|
$loaddefault = 1 unless ( defined $loaddefault );
|
||||||
my $cfg;
|
my $cfg;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user