aboutsummaryrefslogtreecommitdiffstats
path: root/src/threads.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/threads.rs')
-rw-r--r--src/threads.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/threads.rs b/src/threads.rs
index 359569e..6dfa047 100644
--- a/src/threads.rs
+++ b/src/threads.rs
@@ -38,6 +38,15 @@ impl<'o, Owner: ThreadsOwner + 'o> Threads<'o, Owner> {
marker: owner.into(),
}
}
+ pub(crate) fn from_handle<O: Into<Phantomcow<'o, Owner>>>(
+ handle: ThreadsPtr,
+ owner: O,
+ ) -> Threads<'o, Owner> {
+ Threads {
+ handle,
+ marker: owner.into(),
+ }
+ }
}
impl<'s, 'o: 's, Owner: ThreadsOwner + 'o> StreamingIterator<'s, Thread<'s, Self>>