]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys_common/thread_info.rs
Rollup merge of #97516 - RalfJung:atomics, r=joshtriplett
[rust.git] / library / std / src / sys_common / thread_info.rs
index cd570dca0ff576f01facf46fddff37efbeb26e1c..38c9e50009af5eb98193dc559b4dac28834083d3 100644 (file)
@@ -30,13 +30,6 @@ fn with<R, F>(f: F) -> Option<R>
     }
 }
 
-/// Get an address that is unique per running thread.
-///
-/// This can be used as a non-null usize-sized ID.
-pub fn current_thread_unique_ptr() -> usize {
-    THREAD_INFO.with(|info| <*const _>::addr(info))
-}
-
 pub fn current_thread() -> Option<Thread> {
     ThreadInfo::with(|info| info.thread.clone())
 }