Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-09-18 | Loop flags: a simple idempotent event announcement mechanism | Maria Matejka | |
2022-08-02 | Introducing basic RCU primitives for lock-less shared data structures | Maria Matejka | |
2022-07-18 | Event lists rewritten to a single linked list | Maria Matejka | |
In multithreaded environment, we need to pass messages between workers. This is done by queuing events to their respective queues. The double-linked list is not really useful for that as it needs locking everywhere. This commit rewrites the event subsystem to use a single-linked list where events are enqueued by a single atomic instruction and the queue is processed after atomically moving the whole queue aside. | |||
2021-11-22 | Converting the former BFD loop to a universal IO loop and protocol loop. | Maria Matejka | |
There is a simple universal IO loop, taking care of events, timers and sockets. Primarily, one instance of a protocol should use exactly one IO loop to do all its work, as is now done in BFD. Contrary to previous versions, the loop is now launched and cleaned by the nest/proto.c code, allowing for a protocol to just request its own loop by setting the loop's lock order in config higher than the_bird. It is not supported nor checked if any protocol changed the requested lock order in reconfigure. No protocol should do it at all. |