[
https://issues.apache.org/jira/browse/XERCESC-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Boris Kolpackov closed XERCESC-42.
----------------------------------
Resolution: Won't Fix
Assignee: (was: Xerces-C Developers Mailing List)
To make Initialize() thread-safe we would need a once-initialization mechanism
(e.g., PTHREAD_ONCE) but it is platform-dependent and may not be available on
some platforms that we support.
> XMLPlatformUtils::Initialize() is not thread safe
> -------------------------------------------------
>
> Key: XERCESC-42
> URL: https://issues.apache.org/jira/browse/XERCESC-42
> Project: Xerces-C++
> Issue Type: Bug
> Components: Miscellaneous
> Affects Versions: 1.4
> Environment: Operating System: Other
> Platform: Other
> Reporter: Mark Collette
>
> All of the samples assume that we have a simple main() where we can run
> Initialize() and Terminate(), but in mine it is a multi-threaded shared
> library
> (.so, .dll) which has to field requests from multiple connections, of which
> the
> usage of xml parsing is part of several tasks. Since I'm trying to minimize
> resource usage, I would perfer not to Initialize() on startup, but would
> rather
> Initialize(), Terminate() around specific events. The code itself says it's
> not
> thread-safe.
> Would it be possible for the platfirm to use mutexes, even though this is
> before the platform initialization?
> Mark Collette
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]