mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Fix some reentrancy bugs.
This commit is contained in:
@@ -583,6 +583,9 @@ bool Config::hasFluxSource()
|
||||
|
||||
std::shared_ptr<FluxSource>& Config::getFluxSource()
|
||||
{
|
||||
/* Ensure the config gets built (which might call us reentrantly). */
|
||||
combined();
|
||||
|
||||
if (!_fluxSource)
|
||||
{
|
||||
if (!hasFluxSource())
|
||||
@@ -601,6 +604,9 @@ bool Config::hasVerificationFluxSource() const
|
||||
|
||||
std::shared_ptr<FluxSource>& Config::getVerificationFluxSource()
|
||||
{
|
||||
/* Ensure the config gets built (which might call us reentrantly). */
|
||||
combined();
|
||||
|
||||
if (!_verificationFluxSource)
|
||||
{
|
||||
if (!hasVerificationFluxSource())
|
||||
@@ -619,6 +625,9 @@ bool Config::hasImageReader()
|
||||
|
||||
std::shared_ptr<ImageReader>& Config::getImageReader()
|
||||
{
|
||||
/* Ensure the config gets built (which might call us reentrantly). */
|
||||
combined();
|
||||
|
||||
if (!_imageReader)
|
||||
{
|
||||
if (!hasImageReader())
|
||||
|
||||
Reference in New Issue
Block a user