]> git.meshlink.io Git - meshlink/commitdiff
Reduce how often we have to poll the packet queue.
authorGuus Sliepen <guus@meshlink.io>
Fri, 27 Mar 2020 21:52:46 +0000 (22:52 +0100)
committerGuus Sliepen <guus@meshlink.io>
Fri, 27 Mar 2020 21:56:47 +0000 (22:56 +0100)
Packets are moved to the MeshLink thread via the packet queue. However,
each packet required a trigger byte to be sent to the event loop, requiring
more calls to select() than necessary. Now we make event loop signals level
triggered, and dequeue all enqueued packets at once.

This also adds debug log statements for the packet queue.


No differences found