summaryrefslogtreecommitdiff
path: root/doc/developer
diff options
context:
space:
mode:
Diffstat (limited to 'doc/developer')
-rw-r--r--doc/developer/locking.rst4
-rw-r--r--doc/developer/rcu.rst2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/developer/locking.rst b/doc/developer/locking.rst
index c8366480d2..bce1311188 100644
--- a/doc/developer/locking.rst
+++ b/doc/developer/locking.rst
@@ -7,7 +7,7 @@ FRR ships two small wrappers around ``pthread_mutex_lock()`` /
``pthread_mutex_unlock``. Use ``#include "frr_pthread.h"`` to get these
macros.
-.. c:macro:: frr_with_mutex(mutex)
+.. c:macro:: frr_with_mutex (mutex)
(With ``pthread_mutex_t *mutex``.)
@@ -17,7 +17,7 @@ macros.
int somefunction(int option)
{
- frr_with_mutex(&my_mutex) {
+ frr_with_mutex (&my_mutex) {
/* mutex will be locked */
if (!option)
diff --git a/doc/developer/rcu.rst b/doc/developer/rcu.rst
index c8248194b7..ac4405121e 100644
--- a/doc/developer/rcu.rst
+++ b/doc/developer/rcu.rst
@@ -13,7 +13,7 @@ operation (and not a set of APIs.) The core ideas are:
"invisible" copies. Other threads, when they access the structure, see an
older (but consistent) copy.
-* once done, the updated copy is swapped in in a single operation so that
+* once done, the updated copy is swapped in a single operation so that
other threads see either the old or the new data but no inconsistent state
between.