I’m interested in using
libfdb in the context of MirageOS, a library operating system for constructing secure, high-perfomance unikernels. The challenge is that MirageOS is fully event-driven, with no support for preemptive threading. This means I cannot construct a thread for running
fdb_run_network as instructed in the documentation:
Unless your program is entirely event-driven based on results of asynchronous functions in this API and has no event loop of its own, you will want to invoke this function on an auxiliary thread (which it is your responsibility to create).
I assume both MirageOS and
libfdb ultimately end up dispatching to
epoll, so in a sense, the approaches should be compatible. The question is whether the two event-loops of
libfdb and MirageOS can be bridged/consolidated somehow.
Any input on how to achieve this would be greatly appreciated. Thanks in advance!