Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
channel: unbounded: synchronize receiver disconnect with initialization
We must take into account the case where the channel has messages in the block pointed to by `tail` but the head is still pointing to a null pointer. This can happen with two concurrent senders if one gets preempted during initialization. Signed-off-by: Petros Angelatos <petrosagg@gmail.com>
- Loading branch information