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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Babel-users mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/babel-users

Reply via email to