diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-06-17 18:05:03 +0200 |
---|---|---|
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-06-17 18:05:03 +0200 |
commit | 5472487b2684f1ebd345f813c73e0dfdcf2b2274 (patch) | |
tree | 7407632eb1507f9ca54cf4f60f46aed5f1cfa7de | |
parent | selftest/mpmc_ring: use kthreads (diff) | |
download | wireguard-monolithic-historical-5472487b2684f1ebd345f813c73e0dfdcf2b2274.tar.xz wireguard-monolithic-historical-5472487b2684f1ebd345f813c73e0dfdcf2b2274.zip |
mpmc_ptr_ring: Fix a word
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
-rw-r--r-- | src/mpmc_ptr_ring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mpmc_ptr_ring.h b/src/mpmc_ptr_ring.h index 077e45e..d8310e7 100644 --- a/src/mpmc_ptr_ring.h +++ b/src/mpmc_ptr_ring.h @@ -113,7 +113,7 @@ static inline int mpmc_ptr_ring_produce(struct mpmc_ptr_ring *r, void *ptr) WRITE_ONCE(r->queue[p & mask], ptr); - /* Wait until it's our term to update the producer tail pointer */ + /* Wait until it's our turn to update the producer tail pointer */ while (atomic_read(&r->producer_tail) != p) cpu_relax(); |