Home
last modified time | relevance | path

Searched refs:ThreadHolder (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/thread_local/src/
Dthread_id.rs77 struct ThreadHolder(Thread); struct
78 impl ThreadHolder { impl
79 fn new() -> ThreadHolder { in new()
80 ThreadHolder(Thread::new(THREAD_ID_MANAGER.lock().unwrap().alloc())) in new()
83 impl Drop for ThreadHolder { implementation
89 thread_local!(static THREAD_HOLDER: ThreadHolder = ThreadHolder::new());
/external/junit/src/main/java/org/junit/internal/management/
DManagementFactory.java54 private static final class ThreadHolder { class in ManagementFactory
75 return ThreadHolder.THREAD_MX_BEAN; in getThreadMXBean()