mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
XML::SAX::ExpatXS thread protection
This commit is contained in:
parent
b07be3885d
commit
d902afc7db
@ -195,11 +195,11 @@ sub data_consumer ($$) {
|
|||||||
eval {
|
eval {
|
||||||
threads->yield;
|
threads->yield;
|
||||||
# XML::SAX::ExpatXS is not thread safe.
|
# XML::SAX::ExpatXS is not thread safe.
|
||||||
if ($XML::Simple::PREFERRED_PARSER == 'XML::SAX::ExpatXS') {
|
if ($XML::Simple::PREFERRED_PARSER eq 'XML::SAX::ExpatXS') {
|
||||||
$XMLinSem->down();
|
$XMLinSem->down();
|
||||||
}
|
}
|
||||||
$xml_data = XMLin ($file_name, forcearray => 'module');
|
$xml_data = XMLin ($file_name, forcearray => 'module');
|
||||||
if ($XML::Simple::PREFERRED_PARSER == 'XML::SAX::ExpatXS') {
|
if ($XML::Simple::PREFERRED_PARSER eq 'XML::SAX::ExpatXS') {
|
||||||
$XMLinSem->up();
|
$XMLinSem->up();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user