diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-09-09 16:05:29 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2024-09-10 14:52:20 -0400 |
| commit | 8a14a656fbd8843628b61e5a20877b40b772482c (patch) | |
| tree | 25af7c45b31c2c16e3bc00b613c6cbe497bb0a07 /src/check_type.cpp | |
| parent | e9a6a344809daf5c0a3b725dd52e1527382d8c41 (diff) | |
Fix `chan.can_send` for unbuffered channels
`w_waiting` is the signal that says a caller is waiting to be able to
send something. It is incremented upon send and - in the case of an
unbuffered channel - it can only hold one message.
Therefore, check that `w_waiting` is zero instead.
Diffstat (limited to 'src/check_type.cpp')
0 files changed, 0 insertions, 0 deletions