mirror of https://github.com/oxen-io/lokinet
Fixup MSVC build
This commit is contained in:
parent
4bf2020839
commit
f734ffeae4
|
@ -11,6 +11,18 @@
|
||||||
"buildCommandArgs": "-v",
|
"buildCommandArgs": "-v",
|
||||||
"ctestCommandArgs": "",
|
"ctestCommandArgs": "",
|
||||||
"variables": []
|
"variables": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x64-Release",
|
||||||
|
"generator": "Ninja",
|
||||||
|
"configurationType": "RelWithDebInfo",
|
||||||
|
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}",
|
||||||
|
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}",
|
||||||
|
"cmakeCommandArgs": "",
|
||||||
|
"buildCommandArgs": "-v",
|
||||||
|
"ctestCommandArgs": "",
|
||||||
|
"inheritEnvironments": [ "msvc_x64_x64" ],
|
||||||
|
"variables": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1,5 +1,7 @@
|
||||||
#include <net/net_int.hpp>
|
#include <net/net_int.hpp>
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace llarp
|
namespace llarp
|
||||||
{
|
{
|
||||||
template <>
|
template <>
|
||||||
|
|
|
@ -4,6 +4,10 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <util/logger.hpp>
|
#include <util/logger.hpp>
|
||||||
|
|
||||||
|
#ifdef LoadString
|
||||||
|
#undef LoadString
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace llarp
|
namespace llarp
|
||||||
{
|
{
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -61,7 +61,7 @@ llarp_threadpool_queue_job(struct llarp_threadpool *pool,
|
||||||
{
|
{
|
||||||
while(!pool->impl->tryAddJob(std::bind(job.work, job.user)))
|
while(!pool->impl->tryAddJob(std::bind(job.work, job.user)))
|
||||||
{
|
{
|
||||||
::usleep(1000);
|
std::this_thread::sleep_for(std::chrono::microseconds(1000));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue