]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_keepalives.h
bgpd: dynamically allocate synchronization primitives
[mirror_frr.git] / bgpd / bgp_keepalives.h
index 281c32f1735542d68b012b7eecadab524413df47..2bd3964dbe1f01f3ddc6d401dd444373f3d61414 100644 (file)
@@ -58,6 +58,13 @@ extern void peer_keepalives_on(struct peer *);
  */
 extern void peer_keepalives_off(struct peer *);
 
+/* Pre-run initialization function for keepalives pthread.
+ *
+ * Initializes synchronization primitives. This should be called before
+ * anything else to avoid race conditions.
+ */
+extern void peer_keepalives_init(void);
+
 /* Entry function for keepalives pthread.
  *
  * This function loops over an internal list of peers, generating keepalives at