crossbeam icon indicating copy to clipboard operation
crossbeam copied to clipboard

Implement Worker::is_same_as

Open james7132 opened this issue 1 year ago • 0 comments

Currently it's not possible to tell if a Worker and a Stealer point to the same underlying queue. This make it difficult to tell which stealer to remove from a list and you have a local Worker on hand, or skip stealing from when given a global list of stealers. The implementation just forwards to Arc::ptr_eq on the inner buffer. Added a doctest as well.

james7132 avatar Apr 23 '24 03:04 james7132