Hello everyone,
I would like to confirm whether the crossbeam Sender
and Receiver
channels utilize atomic operations or locks for their underlying mechanism.
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.