提交 c02e02df 编写于 作者: S Stephen Connolly

prepare for merge

上级 10a88756
......@@ -74,6 +74,9 @@ Upcoming changes</a>
<li class=bug>
Fix several loggers which are identifying as the wrong class.
(<a href="https://github.com/jenkinsci/jenkins/pull/1651">PR 1651</a>)
<li class=bug>
Fix deadlock between hudson.model.Queue and hudson.model.Computer.
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-288040">issue 28840</a>)
</ul>
</div><!--=TRUNK-END=-->
<h3><a name=v1.617>What's new in 1.617</a> (2015/06/07)</h3>
......
......@@ -1179,7 +1179,7 @@ public class Queue extends ResourceController implements Saveable {
}
/**
* Some operations require to be performed with the {@link Queue} lock held. Use one of these methods rather
* Some operations require the {@link Queue} lock held. Use one of these methods rather
* than locking directly on Queue in order to allow for future refactoring.
*
* @param callable the operation to perform.
......@@ -1220,11 +1220,11 @@ public class Queue extends ResourceController implements Saveable {
}
/**
* Some operations require to be performed with the {@link Queue} lock held. Use one of these methods rather
* than locking directly on Queue in order to allow for future refactoring.
* Invokes the supplied {@link Runnable} if the {@link Queue} lock was obtained without blocking.
*
* @param runnable the operation to perform.
* @return {@code true} if the lock available and the operation performed.
* @since 1.FIXME
* @return {@code true} if the lock was available and the operation was performed.
* @since 1.618
*/
public static boolean tryWithLock(Runnable runnable) {
final Jenkins jenkins = Jenkins.getInstance();
......@@ -1240,7 +1240,7 @@ public class Queue extends ResourceController implements Saveable {
* Wraps a {@link Runnable} with the {@link Queue} lock held.
*
* @param runnable the operation to wrap.
* @since 1.FIXME
* @since 1.618
*/
public static Runnable wrapWithLock(Runnable runnable) {
final Jenkins jenkins = Jenkins.getInstance();
......@@ -1252,7 +1252,7 @@ public class Queue extends ResourceController implements Saveable {
* Wraps a {@link hudson.remoting.Callable} with the {@link Queue} lock held.
*
* @param callable the operation to wrap.
* @since 1.FIXME
* @since 1.618
*/
public static <V, T extends Throwable> hudson.remoting.Callable<V, T> wrapWithLock(hudson.remoting.Callable<V, T> callable) {
final Jenkins jenkins = Jenkins.getInstance();
......@@ -1264,7 +1264,7 @@ public class Queue extends ResourceController implements Saveable {
* Wraps a {@link java.util.concurrent.Callable} with the {@link Queue} lock held.
*
* @param callable the operation to wrap.
* @since 1.FIXME
* @since 1.618
*/
public static <V> java.util.concurrent.Callable<V> wrapWithLock(java.util.concurrent.Callable<V> callable) {
final Jenkins jenkins = Jenkins.getInstance();
......@@ -1298,11 +1298,11 @@ public class Queue extends ResourceController implements Saveable {
}
/**
* Some operations require to be performed with the {@link Queue} lock held. Use one of these methods rather
* than locking directly on Queue in order to allow for future refactoring.
* Invokes the supplied {@link Runnable} if the {@link Queue} lock was obtained without blocking.
*
* @param runnable the operation to perform.
* @return {@code true} if the lock available and the operation performed.
* @since 1.FIXME
* @return {@code true} if the lock was available and the operation was performed.
* @since 1.618
*/
protected boolean _tryWithLock(Runnable runnable) {
if (lock.tryLock()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册