Home | History | Annotate | Download | only in concurrent

Lines Matching defs:thread

19  * A thread-safe map with weak keys. Entries are based on a key's system hash code and keys are considered
31 private final Thread thread;
34 * @param cleanerThread {@code true} if a thread should be started that removes stale entries.
39 thread = new Thread(this);
40 thread.setName("weak-ref-cleaner-" + ID.getAndIncrement());
41 thread.setPriority(Thread.MIN_PRIORITY);
42 thread.setDaemon(true);
43 thread.start();
45 thread = null;
105 * in case that another thread requests a value for a key concurrently.
115 * @return The cleaner thread or {@code null} if no such thread was set.
117 public Thread getCleanerThread() {
118 return thread;