diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-06-17 18:05:03 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-18 15:08:56 +0200 |
commit | f41171b3f1b5abc2094c7054e5f0e16e639706d8 (patch) | |
tree | 845aaccd5f3e837d0c574e7c9878246371c9e44a /src/mpmc_ptr_ring.h | |
parent | selftest/mpmc_ring: use kthreads (diff) | |
download | wireguard-monolithic-historical-f41171b3f1b5abc2094c7054e5f0e16e639706d8.tar.xz wireguard-monolithic-historical-f41171b3f1b5abc2094c7054e5f0e16e639706d8.zip |
mpmc_ptr_ring: Fix a word
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Diffstat (limited to '')
-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(); |