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

clang formatting for this PR

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