summaryrefslogtreecommitdiff
path: root/nest/rt.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-09-07 15:06:22 +0200
committerMaria Matejka <mq@ucw.cz>2022-09-08 15:13:37 +0200
commit5103de4e8ed7f4744326129a4296cf3511b1e1f9 (patch)
tree789b4a1928ef6990962a8de1d0f5758318fc05f2 /nest/rt.h
parente2c612063649cb5134459ab0a2c7377f00d6e9c0 (diff)
Table long-locking debug code
Diffstat (limited to 'nest/rt.h')
-rw-r--r--nest/rt.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/nest/rt.h b/nest/rt.h
index 987a9ff8..82d74296 100644
--- a/nest/rt.h
+++ b/nest/rt.h
@@ -482,8 +482,12 @@ void rt_init(void);
void rt_preconfig(struct config *);
void rt_postconfig(struct config *);
void rt_commit(struct config *new, struct config *old);
-void rt_lock_table(rtable *);
-void rt_unlock_table(rtable *);
+
+void rt_lock_table_debug(rtable *, const char *file, uint line);
+void rt_unlock_table_debug(rtable *, const char *file, uint line);
+#define rt_lock_table(tab) rt_lock_table_debug(tab, __FILE__, __LINE__)
+#define rt_unlock_table(tab) rt_unlock_table_debug(tab, __FILE__, __LINE__)
+
struct f_trie * rt_lock_trie(rtable *tab);
void rt_unlock_trie(rtable *tab, struct f_trie *trie);
void rt_flowspec_link(rtable *src, rtable *dst);