Commit 86d8d3c9 authored by Nick Draper's avatar Nick Draper
Browse files

clang formatting for this PR

parent 6c6d959a
...@@ -50,8 +50,8 @@ namespace { ...@@ -50,8 +50,8 @@ namespace {
/// Separator for workspace types in workspaceMethodOnTypes member /// Separator for workspace types in workspaceMethodOnTypes member
const std::string WORKSPACE_TYPES_SEPARATOR = ";"; const std::string WORKSPACE_TYPES_SEPARATOR = ";";
/// The minimum number of seconds after execution that the algorithm should be kept alive /// The minimum number of seconds after execution that the algorithm should be
/// before garbage collection /// kept alive before garbage collection
const size_t DELAY_BEFORE_GC = 5; const size_t DELAY_BEFORE_GC = 5;
class WorkspacePropertyValueIs { class WorkspacePropertyValueIs {
...@@ -111,7 +111,7 @@ Algorithm::Algorithm() ...@@ -111,7 +111,7 @@ Algorithm::Algorithm()
m_communicator(std::make_unique<Parallel::Communicator>()) {} m_communicator(std::make_unique<Parallel::Communicator>()) {}
/// Virtual destructor /// Virtual destructor
Algorithm::~Algorithm() {} Algorithm::~Algorithm() {}
//============================================================================================= //=============================================================================================
//================================== Simple Getters/Setters //================================== Simple Getters/Setters
...@@ -200,12 +200,12 @@ bool Algorithm::isRunning() const { ...@@ -200,12 +200,12 @@ bool Algorithm::isRunning() const {
} }
/// True if the algorithm is ready for garbage collection. /// True if the algorithm is ready for garbage collection.
bool Algorithm::isReadyForGarbageCollection() const { bool Algorithm::isReadyForGarbageCollection() const {
if ((executionState() == ExecutionState::Finished) && if ((executionState() == ExecutionState::Finished) &&
(Mantid::Types::Core::DateAndTime::getCurrentTime() > m_gcTime)) { (Mantid::Types::Core::DateAndTime::getCurrentTime() > m_gcTime)) {
return true; return true;
} }
return false; return false;
} }
//--------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------
......
...@@ -190,11 +190,11 @@ void AlgorithmManagerImpl::cancelAll() { ...@@ -190,11 +190,11 @@ void AlgorithmManagerImpl::cancelAll() {
/// place /// place
size_t AlgorithmManagerImpl::removeFinishedAlgorithms() { size_t AlgorithmManagerImpl::removeFinishedAlgorithms() {
std::vector<IAlgorithm_const_sptr> theCompletedInstances; std::vector<IAlgorithm_const_sptr> theCompletedInstances;
std::copy_if( std::copy_if(m_managed_algs.cbegin(), m_managed_algs.cend(),
m_managed_algs.cbegin(), m_managed_algs.cend(), std::back_inserter(theCompletedInstances),
std::back_inserter(theCompletedInstances), [](const auto &algorithm) { [](const auto &algorithm) {
return (algorithm->isReadyForGarbageCollection()); return (algorithm->isReadyForGarbageCollection());
}); });
for (auto completedAlg : theCompletedInstances) { for (auto completedAlg : theCompletedInstances) {
auto itend = m_managed_algs.end(); auto itend = m_managed_algs.end();
for (auto it = m_managed_algs.begin(); it != itend; ++it) { for (auto it = m_managed_algs.begin(); it != itend; ++it) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment