]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/frrcu.h
Merge pull request #6279 from opensourcerouting/nb-cb-args
[mirror_frr.git] / lib / frrcu.h
index 491e89aac24378854a057d350fa3d7203a7929ed..47751ae7df395a01fd82b0c1ff6d53cd1597737a 100644 (file)
 #include "memory.h"
 #include "atomlist.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* quick RCU primer:
  *   There's a global sequence counter.  Whenever a thread does a
  *   rcu_read_lock(), it is marked as holding the current sequence counter.
@@ -170,4 +174,8 @@ extern void rcu_enqueue(struct rcu_head *head, const struct rcu_action *action);
 
 extern void rcu_close(struct rcu_head_close *head, int fd);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _FRRCU_H */