Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Use event loop instead of threads #9

Open
arnout opened this issue May 25, 2018 · 0 comments
Open

Use event loop instead of threads #9

arnout opened this issue May 25, 2018 · 0 comments
Labels
cleanup Changes that make the implementation more maintainable

Comments

@arnout
Copy link

arnout commented May 25, 2018

Threads are annoying to work with, dangerous, more difficult to port, and not resource friendly. Also, on some platforms, it's easier to implement the behaviour as callbacks (on packet receive, possibly from interrupt) than as a thread.

The only reason to use threads is to be able to distribute work over several processors. But IEEE1905.1 doesn't have much work, just some packet processing.

Therefore, we'd prefer to use an event loop.

We can use an existing library, e.g. libev.

@arnout arnout added the cleanup Changes that make the implementation more maintainable label May 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cleanup Changes that make the implementation more maintainable
Projects
None yet
Development

No branches or pull requests

1 participant