vfs_lwip/lwip: Lwip::lock for concurrent access

This is required in case the send and receive of IP packets is
performed by multiple thread because lwip is not thread safe.

issue #3568
This commit is contained in:
Sebastian Sumpf
2019-12-06 14:12:04 +01:00
committed by Christian Helmuth
parent 9812799b24
commit 9767c4db0e
4 changed files with 31 additions and 15 deletions

View File

@ -17,6 +17,10 @@
#include <timer/timeout.h>
#include <base/allocator.h>
namespace Lwip { void genode_init(Genode::Allocator &heap, Genode::Timeout_scheduler &timer); }
namespace Lwip {
void genode_init(Genode::Allocator &heap, Genode::Timeout_scheduler &timer);
Genode::Lock &lock();
}
#endif