Document thread-safety
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@756435 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
df02f73742
commit
d5aa3eae89
|
@ -34,6 +34,7 @@ package org.apache.http.impl.conn.tsccm;
|
|||
import java.util.Date;
|
||||
import java.util.concurrent.locks.Condition;
|
||||
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
|
||||
/**
|
||||
* Represents a thread waiting for a connection.
|
||||
|
@ -48,6 +49,7 @@ import java.util.concurrent.locks.Condition;
|
|||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
@NotThreadSafe
|
||||
public class WaitingThread {
|
||||
|
||||
/** The condition on which the thread is waiting. */
|
||||
|
|
|
@ -30,11 +30,17 @@
|
|||
|
||||
package org.apache.http.impl.conn.tsccm;
|
||||
|
||||
/** A simple class that can interrupt a {@link WaitingThread}. */
|
||||
/**
|
||||
*
|
||||
import net.jcip.annotations.NotThreadSafe;
|
||||
|
||||
// TODO - only called from ConnPoolByRoute currently; consider adding it as nested class
|
||||
/**
|
||||
* A simple class that can interrupt a {@link WaitingThread}.
|
||||
*
|
||||
* Must be called with the pool lock held.
|
||||
*
|
||||
* @since 4.0
|
||||
*/
|
||||
@NotThreadSafe
|
||||
public class WaitingThreadAborter {
|
||||
|
||||
private WaitingThread waitingThread;
|
||||
|
|
Loading…
Reference in New Issue