sync: fix compilation of bench many_writers_and_receivers_on_1_channel.v (#19956)

This commit is contained in:
Turiiya 2023-11-21 10:48:29 +01:00 committed by GitHub
parent be8e911d61
commit db1cdba411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ fn do_rec(ch chan int, id int, mut ctx Context) {
n_iters := ctx.n_iters
base := id * n_iters * ctx.n_writers
for {
for ch.try_pop(tmp) == .success {
for ch.try_pop(mut tmp) == .success {
ctx.pops[base + i] = Event{
is_set: true
id: id