summaryrefslogtreecommitdiff
path: root/nest/protocol.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-07-28 19:49:03 +0200
committerMaria Matejka <mq@ucw.cz>2022-07-28 19:49:03 +0200
commite858dce757f8766a29f2151ec3ffef3df85af66b (patch)
tree3d60cd0d5da345aac0c852b166eb04bec91f3632 /nest/protocol.h
parent00f6b162c9c357bddf48d52d08b6abb6010004b6 (diff)
Moved the thread starting code to IO loop code
Diffstat (limited to 'nest/protocol.h')
-rw-r--r--nest/protocol.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/nest/protocol.h b/nest/protocol.h
index d6224015..3c823ae1 100644
--- a/nest/protocol.h
+++ b/nest/protocol.h
@@ -134,7 +134,7 @@ struct proto {
u32 debug; /* Debugging flags */
u32 mrtdump; /* MRTDump flags */
uint active_channels; /* Number of active channels */
- uint active_coroutines; /* Number of active coroutines */
+ uint active_loops; /* Number of active IO loops */
byte net_type; /* Protocol network type (NET_*), 0 for undefined */
byte disabled; /* Manually disabled */
byte vrf_set; /* Related VRF instance (above) is defined */
@@ -342,7 +342,7 @@ void proto_notify_state(struct proto *p, unsigned state);
*/
static inline int proto_is_inactive(struct proto *p)
-{ return (p->active_channels == 0) && (p->active_coroutines == 0); }
+{ return (p->active_channels == 0) && (p->active_loops == 0); }
/*