Crossbeam Sender and receiver channels are they lockless?

Hello everyone,

I would like to confirm whether the crossbeam Sender and Receiver channels utilize atomic operations or locks for their underlying mechanism.

The answer from reading the source, is seemingly "yes": in the sense that they use atomics in loops with thread parking... which is essentially a Mutex implementation (technically closer to a Semaphore to track available slots)

ohk understood. Thanks a lot for the info.:slight_smile:

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.