~nwilliams/akiban-persistit/fix_912514_fetchAndRemove_2

« back to all changes in this revision

Viewing changes to core/src/main/java/com/persistit/IOTaskRunnable.java

merge pbeaman: Fixes the race condition that caused testPruneCleanup to fail.

https://code.launchpad.net/~pbeaman/akiban-persistit/fix_1002895_testPruneCleanup/+merge/107122

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
                    break;
159
159
                }
160
160
 
161
 
                while (true) {
 
161
                while (!shouldStop()) {
162
162
                    long pollInterval = pollInterval();
163
163
                    if (_notified && pollInterval >= 0) {
164
164
                        break;