提交 b9a86531 编写于 作者: 独孤过's avatar 独孤过

update v2.2.1

上级 0a06a988
......@@ -27,7 +27,7 @@
#ifdef _WIN32
#include <Windows.h>
#pragma comment(lib, "Winmm.lib")
#pragma comment(lib, "WinMM.Lib")
#endif // _WIN32
#if defined ETERFREE
......@@ -47,6 +47,7 @@ static void task()
#ifdef _WIN32
constexpr UINT PERIOD = 1;
auto result = ::timeBeginPeriod(PERIOD);
if (result != TIMERR_NOERROR)
std::cerr << "timeBeginPeriod error " \
......@@ -112,8 +113,8 @@ static void terminate(ThreadPool&& _threadPool)
int main()
{
using std::cout, std::endl;
using namespace std::chrono;
using std::cout, std::endl;
constexpr auto load = []() noexcept
{ return counter.load(std::memory_order_relaxed); };
......
......@@ -29,8 +29,8 @@ static void print(const ThreadPool& _threadPool)
int main()
{
using namespace std::this_thread;
using namespace std::chrono;
using namespace std::this_thread;
ThreadPool threadPool;
auto proxy = threadPool.getProxy();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册