You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/ev/ev.cpp

27 lines
458 B
C++

#include "ev.hpp"
#include <llarp/util/mem.hpp>
#include <llarp/util/str.hpp>
#include <cstddef>
#include <cstring>
#include <string_view>
#include "libuv.hpp"
#include <llarp/net/net.hpp>
namespace llarp
{
EventLoop_ptr
EventLoop::create(size_t queueLength)
{
return std::make_shared<llarp::uv::Loop>(queueLength);
}
const net::Platform*
EventLoop::Net_ptr() const
{
return net::Platform::Default_ptr();
}
} // namespace llarp