Mantid
Loading...
Searching...
No Matches
TearDownWorld.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7//-----------------------------------------------------------------------------
8// Includes
9//-----------------------------------------------------------------------------
14
15// On MSVC all workspaces must be deleted by the time main() exits as the
16// Workspace destruction can call to an OpenMP loop which is not allowed
17// on MSVC after main() exits.
18// See Workspace2D::~Workspace2D()
19
20namespace {
22ClearAlgorithmManager clearAlgManager;
24ClearADS clearADS;
27} // namespace
28
29//-----------------------------------------------------------------------------
30// ClearAlgorithmManager
31//-----------------------------------------------------------------------------
35 return true;
36}
37
38//-----------------------------------------------------------------------------
39// ClearADS
40//-----------------------------------------------------------------------------
41
45 return true;
46}
47
48//-----------------------------------------------------------------------------
49// ClearPropertyManagerDataService
50//-----------------------------------------------------------------------------
51
55 return true;
56}
Defines a CxxTest::GlobalFixture that clears the AnalysisDataService when its tearDownWorld() method ...
Definition: TearDownWorld.h:29
bool tearDownWorld() override
Defines a CxxTest::GlobalFixture that clears the AlgorithmManager when its tearDownWorld() method is ...
Definition: TearDownWorld.h:19
bool tearDownWorld() override
Defines a CxxTest::GlobalFixture that clears the PropertyManagerDataService when its tearDownWorld() ...
Definition: TearDownWorld.h:39
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...