start threadpool explicitly

pull/67/head
Jeff Becker 6 years ago
parent 4e105f3cd5
commit 2e13daae27
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -48,6 +48,8 @@ llarp_threadpool_tick(struct llarp_threadpool *tp);
void
llarp_threadpool_queue_job(struct llarp_threadpool *tp,
struct llarp_thread_job j);
void
llarp_threadpool_start(struct llarp_threadpool *tp);
void
llarp_threadpool_stop(struct llarp_threadpool *tp);

@ -1,6 +1,6 @@
#include "router.hpp"
#include <llarp/proto.h>
#include <llarp/iwp.hpp>
#include <llarp/threadpool.h>
#include <llarp/link_message.hpp>
#include <llarp/link/utp.hpp>
#include <llarp/rpc.hpp>
@ -681,6 +681,8 @@ llarp_router::Run()
llarp::LogInfo("Bound RPC server to ", rpcBindAddr);
}
llarp_threadpool_start(tp);
routerProfiling.Load(routerProfilesFile.c_str());
llarp::Addr publicAddr(this->addrInfo);

Loading…
Cancel
Save