summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_nvbcq.h
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-07-01 14:42:35 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-07-18 19:09:30 +0200
commit3422e81ab6794b6f2a4a1fb237923bab11ae2b18 (patch)
tree298b11f6521c041fbd460696ffb0e6d4edde0e6c /src/nxt_nvbcq.h
parent14857442c638d39dc0ece60087991916884cd113 (diff)
downloadunit-3422e81ab6794b6f2a4a1fb237923bab11ae2b18.tar.gz
unit-3422e81ab6794b6f2a4a1fb237923bab11ae2b18.tar.bz2
Added missing inline keyword.
Diffstat (limited to '')
-rw-r--r--src/nxt_nvbcq.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nxt_nvbcq.h b/src/nxt_nvbcq.h
index 2b019dcc..e164615b 100644
--- a/src/nxt_nvbcq.h
+++ b/src/nxt_nvbcq.h
@@ -64,7 +64,7 @@ nxt_nvbcq_empty(nxt_nvbcq_t const volatile *q)
}
-static void
+static inline void
nxt_nvbcq_init(nxt_nvbcq_t volatile *q)
{
nxt_nvbcq_atomic_t i;
@@ -79,7 +79,7 @@ nxt_nvbcq_init(nxt_nvbcq_t volatile *q)
}
-static void
+static inline void
nxt_nvbcq_enqueue(nxt_nvbcq_t volatile *q, nxt_nvbcq_atomic_t val)
{
nxt_nvbcq_atomic_t t, h, i;
@@ -110,7 +110,7 @@ nxt_nvbcq_enqueue(nxt_nvbcq_t volatile *q, nxt_nvbcq_atomic_t val)
}
-static nxt_nvbcq_atomic_t
+static inline nxt_nvbcq_atomic_t
nxt_nvbcq_dequeue(nxt_nvbcq_t volatile *q)
{
nxt_nvbcq_atomic_t h, t, i, e;