Skip to content

Commit

Permalink
Apply patch https://git.eclipse.org/c/56954/7 to org.eclipse.core.jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
briandealwis committed Aug 22, 2017
1 parent e0c8002 commit 1dc13c9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,11 @@ else if (state != Job.NONE)
} finally {
if (interrupted)
Thread.currentThread().interrupt();
//only update the lock state if we ended up using the thread job that was given to us
waitEnd(threadJob, threadJob == result, monitor);
if (threadJob == result) {
ISchedulingRule resultRule = result.getRule();
ISchedulingRule threadJobRule = threadJob.getRule();
boolean containsRule = resultRule != null && threadJobRule != null && resultRule.contains(threadJobRule);
waitEnd(threadJob, containsRule, monitor);
if (containsRule) {
if (waiting)
manager.implicitJobs.removeWaiting(threadJob);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,11 @@ else if (state != Job.NONE)
} finally {
if (interrupted)
Thread.currentThread().interrupt();
//only update the lock state if we ended up using the thread job that was given to us
waitEnd(threadJob, threadJob == result, monitor);
if (threadJob == result) {
ISchedulingRule resultRule = result.getRule();
ISchedulingRule threadJobRule = threadJob.getRule();
boolean containsRule = resultRule != null && threadJobRule != null && resultRule.contains(threadJobRule);
waitEnd(threadJob, containsRule, monitor);
if (containsRule) {
if (waiting)
manager.implicitJobs.removeWaiting(threadJob);
}
Expand Down
28 changes: 0 additions & 28 deletions third_party/patches/oxygen/org.eclipse.core.jobs/pom.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,11 @@ else if (state != Job.NONE)
manager.getLockManager().removeLockWaitThread(currentThread, threadJob.getRule());
}
} finally {
//only update the lock state if we ended up using the thread job that was given to us
waitEnd(threadJob, threadJob == result, monitor);
if (threadJob == result) {
ISchedulingRule resultRule = result.getRule();
ISchedulingRule threadJobRule = threadJob.getRule();
boolean containsRule = resultRule != null && threadJobRule != null && resultRule.contains(threadJobRule);
waitEnd(threadJob, containsRule, monitor);
if (containsRule) {
if (waiting)
manager.implicitJobs.removeWaiting(threadJob);
}
Expand Down

0 comments on commit 1dc13c9

Please sign in to comment.