Ignore:
Timestamp:
May 5, 2016, 5:14:19 PM (10 years ago)
Author:
Frederik Heber <heber@…>
Children:
35e83a
Parents:
8c076a
git-author:
Frederik Heber <heber@…> (05/05/16 13:54:14)
git-committer:
Frederik Heber <heber@…> (05/05/16 17:14:19)
Message:

FragmentationResultContainer when written and inside QtGui is used in locked mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/FragmentationAction/ClearFragmentationResultsAction.cpp

    r8c076a r4a33f6  
    5151ActionState::ptr FragmentationClearFragmentationResultsAction::performCall() {
    5252
    53   FragmentationResultContainer::getInstance().clear();
     53  {
     54    AtomicInstance<FragmentationResultContainer> container = FragmentationResultContainer::getLockedInstance();
     55    (*container).clear();
     56  }
    5457
    55   if (FragmentationResultContainer::getInstance().getShortRangeResults().empty()) {
     58  if (FragmentationResultContainer::getConstInstance().getShortRangeResults().empty()) {
    5659    LOG(1, "STATUS: Fragmentation results cleared.");
    5760    return Action::success;
Note: See TracChangeset for help on using the changeset viewer.