<table><tr><td style="">bruns created this revision.<br />bruns added reviewers: Baloo, ngraham, astippich, poboiko.<br />Herald added projects: Frameworks, Baloo.<br />Herald added a subscriber: kde-frameworks-devel.<br />bruns requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D21673">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>After commit <a href="https://phabricator.kde.org/R293:b134533606857226afa067a814999790b868c3f1" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">b13453360685</a> ("Use flag to track when a runner is going idle")<br />
the scheduler may be triggered from the finished content indexer thread,<br />
picking up any remaining work and overwriting the "Suspended" state.</p>

<p>Use a flag variable for the suspend state, and determine the current<br />
state in the scheduler loop, like it is done for e.g. the onBattery<br />
state.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>feed some files into the content indexer<br />
suspend using <tt style="background: #ebebeb; font-size: 13px;">balooctl suspend</tt>, content indexer stops and stays stopped</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>BRANCH</strong><div><div>scheduler</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21673">https://phabricator.kde.org/D21673</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/file/fileindexscheduler.cpp<br />
src/file/fileindexscheduler.h</div></div></div><br /><div><strong>To: </strong>bruns, Baloo, ngraham, astippich, poboiko<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams<br /></div>