[Babel-users] [PATCH 3/3] utilize taskqueue for check_interfaces()

Christof Schulze christof.schulze at gmx.net
Sun Jun 30 23:12:14 BST 2019


Hello Juliusz,

> > this illustrates how the taskqueue can be used and removes a little
> > bit of code from the main loop
>
>It would be more interesting to see how you can replace the mess that
>is resend.c. That will require an interface for task cancellation.
In the meantime I have extended the taskqueue for l3roamd to allow 
removing tasks and I included some stability fixes that play out when 
one core cannot handle the load of the program any more. The feature was 
needed there as well. The function has the signature:

void drop_task(taskqueue_t *elem)

Indeed resend.c is interesting as there is process logic entangled with 
implementational steps crossing many levels of abstraction in a single 
function. The first thing to do is probably clarify the existing logic. 
It is a big task. I am sending a small patch to that end in interfaces.c 
because I do care about the problem where the interface is down but it 
isn't.

Cheers

Christof

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/babel-users/attachments/20190701/6d91bcb1/attachment.sig>


More information about the Babel-users mailing list